From 0b948d8f29356210c2ace2496815b5b795144f1a Mon Sep 17 00:00:00 2001 From: Jeffrey 'Alex' Clark Date: Wed, 6 May 2026 14:41:24 -0400 Subject: [PATCH] Fix typing errors --- test/asynchronous/test_periodic_executor.py | 1 + test/test_periodic_executor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/test/asynchronous/test_periodic_executor.py b/test/asynchronous/test_periodic_executor.py index cdf82ff8a..0aaa288ac 100644 --- a/test/asynchronous/test_periodic_executor.py +++ b/test/asynchronous/test_periodic_executor.py @@ -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) diff --git a/test/test_periodic_executor.py b/test/test_periodic_executor.py index 3df2dbf97..935fc08d0 100644 --- a/test/test_periodic_executor.py +++ b/test/test_periodic_executor.py @@ -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)