From 0fa3115d32ad9ff1ac3571cbe9d88b1108feede2 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 19 Jan 2022 22:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Transport:=20Fix=20type=20hint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyrogram/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py index 5963442f..a00c5cec 100644 --- a/pyrogram/connection/connection.py +++ b/pyrogram/connection/connection.py @@ -48,7 +48,7 @@ class Connection: self.address = DataCenter(dc_id, test_mode, ipv6, media) self.mode = self.MODES.get(mode, TCPAbridged) - self.protocol = None # type: TCP + self.protocol = None # type: Optional[TCP] async def connect(self): for i in range(Connection.MAX_RETRIES):