Skip to content

Commit 902abd1

Browse files
committed
Fix typing errors
1 parent 85b7721 commit 902abd1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

test/asynchronous/test_periodic_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ async def target():
152152
if _IS_SYNC:
153153
woken.wait(timeout=2)
154154
else:
155+
assert isinstance(woken, asyncio.Event)
155156
await asyncio.wait_for(woken.wait(), timeout=2)
156157
self.executor.wake()
157158
await self.executor.join(timeout=3)

test/test_periodic_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def target():
150150
if _IS_SYNC:
151151
woken.wait(timeout=2)
152152
else:
153+
assert isinstance(woken, asyncio.Event)
153154
asyncio.wait_for(woken.wait(), timeout=2)
154155
self.executor.wake()
155156
self.executor.join(timeout=3)

0 commit comments

Comments
 (0)