Skip to content

Commit

Permalink
Avoid test dependency on typing_extensions
Browse files Browse the repository at this point in the history
TypedDict was added to the standard library typing module in Python 3.8.
Since this project already requires at least Python 3.9, we can rely on
this being available.
  • Loading branch information
carlwgeorge committed Mar 5, 2025
1 parent aaf2016 commit a4e5463
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/protocols/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import websockets
import websockets.client
import websockets.exceptions
from typing_extensions import TypedDict
from websockets.extensions.permessage_deflate import ClientPerMessageDeflateFactory
from websockets.typing import Subprotocol

Expand Down Expand Up @@ -777,7 +776,7 @@ async def websocket_session(url: str):
assert disconnected_message == {"type": "websocket.disconnect", "code": 1006}


class EmptyDict(TypedDict): ...
class EmptyDict(typing.TypedDict): ...


async def test_server_reject_connection_with_response(
Expand Down

0 comments on commit a4e5463

Please sign in to comment.