Skip to content

Commit

Permalink
Type ignore mock queue due to python 3.8 issue
Browse files Browse the repository at this point in the history
- This is for a test class so it isn't a problem
  • Loading branch information
fselmo committed Jul 12, 2024
1 parent 91bccb3 commit 0442c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3/_utils/module_testing/module_testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0442c27

Please sign in to comment.