diff --git a/web3/_utils/module_testing/module_testing_utils.py b/web3/_utils/module_testing/module_testing_utils.py index 0cac3c6fec..031736823e 100644 --- a/web3/_utils/module_testing/module_testing_utils.py +++ b/web3/_utils/module_testing/module_testing_utils.py @@ -191,7 +191,7 @@ def __init__( messages: Optional[Collection[bytes]] = None, raise_exception: Optional[Exception] = None, ) -> None: - self.queue = asyncio.Queue[bytes]() + self.queue = asyncio.Queue() # type: ignore # py38 issue for msg in messages or []: self.queue.put_nowait(msg) self.raise_exception = raise_exception