fix: update ws_client type hint to allow None for better clarity

This commit is contained in:
2026-06-04 22:29:24 +02:00
parent 3f4b9a4012
commit 8cfd969dae
+1 -1
View File
@@ -57,7 +57,7 @@ def _start_feed(app: FastAPI, *, kill_switch_only: bool = False) -> asyncio.Task
_LOG.warning("no_enabled_pair_symbols_feed_not_started")
return None
ws_client: KrakenWsClient = getattr(app.state, "ws_client", None)
ws_client: KrakenWsClient | None = getattr(app.state, "ws_client", None)
if ws_client is None:
ws_client = KrakenWsClient(settings, alert_notifier=alert_notifier)
app.state.ws_client = ws_client