From 210639c02c0cb05b7d3c3d6a0bee931cb9b29ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= <25355197+provinzkraut@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:34:27 +0100 Subject: [PATCH] fix pyright --- litestar/handlers/websocket_handlers/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litestar/handlers/websocket_handlers/stream.py b/litestar/handlers/websocket_handlers/stream.py index 299cb8499f..b52a3eb8d2 100644 --- a/litestar/handlers/websocket_handlers/stream.py +++ b/litestar/handlers/websocket_handlers/stream.py @@ -260,7 +260,7 @@ def on_registration(self, app: Litestar) -> None: return_dto = self.resolve_return_dto() # make sure the closure doesn't capture self._ws_stream / self - send_mode = self._ws_stream_options.send_mode + send_mode: WebSocketMode = self._ws_stream_options.send_mode # pyright: ignore listen_for_disconnect = self._ws_stream_options.listen_for_disconnect warn_on_data_discard = self._ws_stream_options.warn_on_data_discard