Skip to content

Commit 4f4e644

Browse files
committed
Restore compatibility with Python 3.9.
It was broken in 44ccee1.
1 parent e44a1ea commit 4f4e644

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/websockets/sync/messages.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def get_iter(self) -> Iterator[Data]:
151151
chunks = self.chunks
152152
self.chunks = []
153153
self.chunks_queue = cast(
154-
queue.SimpleQueue[Data | None],
154+
# Remove quotes around type when dropping Python < 3.10.
155+
"queue.SimpleQueue[Data | None]",
155156
queue.SimpleQueue(),
156157
)
157158

0 commit comments

Comments
 (0)