Skip to content

Commit

Permalink
Fix mypy complaining about mismatching parent methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Feb 3, 2024
1 parent 1e70746 commit 4f27aba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion starlette/testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def __init__(self, session: WebSocketTestSession) -> None:
self.session = session


class WebSocketDenialResponse(httpx.Response, WebSocketDisconnect):
class WebSocketDenialResponse( # type: ignore[misc]
httpx.Response,
WebSocketDisconnect,
):
"""
A special case of WebSocketDisconnect, raised in the TestClient if the
socket is closed before being accepted, either with a send_denial_response()
Expand Down

0 comments on commit 4f27aba

Please sign in to comment.