Fix typing errors

This commit is contained in:
Jeffrey 'Alex' Clark 2026-05-06 14:41:24 -04:00
parent 622f46c0da
commit 0b948d8f29
2 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class TestAsyncPeriodicExecutor(AsyncPeriodicExecutorTestBase):
if _IS_SYNC:
woken.wait(timeout=2)
else:
assert isinstance(woken, asyncio.Event)
await asyncio.wait_for(woken.wait(), timeout=2)
self.executor.wake()
await self.executor.join(timeout=3)

View File

@ -150,6 +150,7 @@ class TestPeriodicExecutor(PeriodicExecutorTestBase):
if _IS_SYNC:
woken.wait(timeout=2)
else:
assert isinstance(woken, asyncio.Event)
asyncio.wait_for(woken.wait(), timeout=2)
self.executor.wake()
self.executor.join(timeout=3)