Skip to content

Commit

Permalink
fix web_ws.py
Browse files Browse the repository at this point in the history
  • Loading branch information
derlih committed Jan 18, 2021
1 parent ac6c7f4 commit 52db00f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aiohttp/web_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ def _handshake(

if protocol:
response_headers[hdrs.SEC_WEBSOCKET_PROTOCOL] = protocol
return (response_headers, protocol, bool(compress), notakeover)
return (
response_headers,
protocol,
compress, # type: ignore[return-value]
notakeover,
)

def _pre_start(self, request: BaseRequest) -> Tuple[Optional[str], WebSocketWriter]:
self._loop = request._loop
Expand Down

0 comments on commit 52db00f

Please sign in to comment.