fix: update ws_client type hint to allow None for better clarity
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user