Skip to content

Commit 560f9e8

Browse files
committed
remove second path argument of ws_handler per websockets DeprecationWarning
1 parent 8ae0bcb commit 560f9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvicorn/protocols/websockets/websockets_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def send_500_response(self) -> None:
226226
# itself (see https://github.com/Kludex/uvicorn/issues/920)
227227
self.handshake_started_event.set()
228228

229-
async def ws_handler(self, protocol: WebSocketServerProtocol, path: str) -> Any: # type: ignore[override]
229+
async def ws_handler(self, protocol: WebSocketServerProtocol) -> Any: # type: ignore[override]
230230
"""
231231
This is the main handler function for the 'websockets' implementation
232232
to call into. We just wait for close then return, and instead allow

0 commit comments

Comments
 (0)