Skip to content

Commit

Permalink
Make MESSAGE_TYPES_WITH_CONTENT a frozenset
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 19, 2024
1 parent b4f9cb3 commit be6180e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions aiohttp/http_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ class WSMsgType(IntEnum):
ERROR = 0x102


MESSAGE_TYPES_WITH_CONTENT: Final = (
WSMsgType.BINARY,
WSMsgType.TEXT,
WSMsgType.CONTINUATION,
MESSAGE_TYPES_WITH_CONTENT: Final = frozenset(
{
WSMsgType.BINARY,
WSMsgType.TEXT,
WSMsgType.CONTINUATION,
}
)

WS_KEY: Final[bytes] = b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
Expand Down

0 comments on commit be6180e

Please sign in to comment.