Merge branch 'fix-mypy' into 'master'

Fix mypy in CI

See merge request poezio/slixmpp!191
This commit is contained in:
mathieui 2022-03-19 00:07:55 +01:00
commit abd699593f

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