Fix mypy in CI

This commit is contained in:
mathieui 2022-03-19 00:04:56 +01:00
parent ad610c7ded
commit 4202ed4cd5

View file

@ -526,7 +526,7 @@ class XMLStream(asyncio.BaseProtocol):
else:
self.loop.run_until_complete(self.disconnected)
else:
tasks: List[Future] = [asyncio.sleep(timeout)]
tasks: List[Awaitable] = [asyncio.sleep(timeout)]
if not forever:
tasks.append(self.disconnected)
self.loop.run_until_complete(asyncio.wait(tasks))