fixed mypy
All checks were successful
CI / build (push) Successful in 42s

This commit is contained in:
2024-12-01 15:35:49 +08:00
parent 04aae1f976
commit a417c7484b

View File

@@ -25,12 +25,12 @@ class Subscriber:
async def wait(self, tout: Optional[float]) -> bool:
future = self._loop.create_future()
future: Future[bool] = self._loop.create_future()
self._event = future
try:
async with timeout(tout):
log.debug('Subscriber %s is waiting for an event', id(self))
await future
return await future
except TimeoutError:
return False