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):