🐛 Transport: Fix type hint

This commit is contained in:
Sam 2022-01-19 22:27:53 +08:00
parent 0dfed0b2fa
commit 0fa3115d32
Signed by: sam01101
GPG Key ID: 42D7B6D13FF5E611

View File

@ -48,7 +48,7 @@ class Connection:
self.address = DataCenter(dc_id, test_mode, ipv6, media) self.address = DataCenter(dc_id, test_mode, ipv6, media)
self.mode = self.MODES.get(mode, TCPAbridged) self.mode = self.MODES.get(mode, TCPAbridged)
self.protocol = None # type: TCP self.protocol = None # type: Optional[TCP]
async def connect(self): async def connect(self):
for i in range(Connection.MAX_RETRIES): for i in range(Connection.MAX_RETRIES):