From 21cd52d508ea61cb82e969b2384f1353a61c89e5 Mon Sep 17 00:00:00 2001 From: yassin Date: Mon, 14 Sep 2026 19:55:06 +0000 Subject: [PATCH] fix(bedrock/realtime): declare the client websocket scope as a protocol attribute CodeQL py/ineffectual-statement flags the bare ellipsis body of the @property declaration on the RealtimeClientWebSocket protocol. A plain attribute annotation states the same structural contract without an expression statement. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/llms/bedrock/realtime/handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/llms/bedrock/realtime/handler.py b/litellm/llms/bedrock/realtime/handler.py index 130dec20a4b..7ab5a14dfc2 100644 --- a/litellm/llms/bedrock/realtime/handler.py +++ b/litellm/llms/bedrock/realtime/handler.py @@ -84,8 +84,7 @@ def _should_log_event(openai_message: Mapping[str, object]) -> bool: class RealtimeClientWebSocket(Protocol): """The client-facing websocket surface the realtime bridge talks to.""" - @property - def scope(self) -> MutableMapping[str, object]: ... # mutable-ok: the ASGI scope is the per-connection state store + scope: MutableMapping[str, object] # mutable-ok: the ASGI scope is the per-connection state store async def receive_text(self) -> str: ...