Skip to content

Commit

Permalink
Restore compatibility with Python 3.9.
Browse files Browse the repository at this point in the history
It was broken in 44ccee1.
  • Loading branch information
aaugustin committed Sep 22, 2024
1 parent e44a1ea commit 4f4e644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/websockets/sync/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def get_iter(self) -> Iterator[Data]:
chunks = self.chunks
self.chunks = []
self.chunks_queue = cast(
queue.SimpleQueue[Data | None],
# Remove quotes around type when dropping Python < 3.10.
"queue.SimpleQueue[Data | None]",
queue.SimpleQueue(),
)

Expand Down

0 comments on commit 4f4e644

Please sign in to comment.