aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/proxy/protocol/websocket.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/proxy/protocol/websocket.py')
-rw-r--r--mitmproxy/proxy/protocol/websocket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/proxy/protocol/websocket.py b/mitmproxy/proxy/protocol/websocket.py
index 2d8458a5..7349c325 100644
--- a/mitmproxy/proxy/protocol/websocket.py
+++ b/mitmproxy/proxy/protocol/websocket.py
@@ -44,12 +44,12 @@ class WebSocketLayer(base.Layer):
def __init__(self, ctx, handshake_flow):
super().__init__(ctx)
self.handshake_flow = handshake_flow
- self.flow = None # type: WebSocketFlow
+ self.flow: WebSocketFlow = None
self.client_frame_buffer = []
self.server_frame_buffer = []
- self.connections = {} # type: Dict[object, WSConnection]
+ self.connections: dict[object, WSConnection] = {}
extensions = []
if 'Sec-WebSocket-Extensions' in handshake_flow.response.headers: