From 4229cea6cf40a095485f4a96e87f449a50b6789b Mon Sep 17 00:00:00 2001 From: STiFLeR7 Date: Wed, 23 Sep 2026 09:41:15 +0530 Subject: [PATCH] fix(a2a): drop invalid Final annotation on loop-local scanned var basedpyright's reportGeneralTypeIssues rejects a Final-annotated variable assigned inside a loop body, breaching the repo's per-rule budget by 1. The binding is fresh each iteration, not mutated, so dropping Final here is safe. Co-Authored-By: Claude Sonnet 5 --- litellm/llms/a2a/chat/guardrail_translation/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/a2a/chat/guardrail_translation/handler.py b/litellm/llms/a2a/chat/guardrail_translation/handler.py index 28e4c419c82..26c77fe69d2 100644 --- a/litellm/llms/a2a/chat/guardrail_translation/handler.py +++ b/litellm/llms/a2a/chat/guardrail_translation/handler.py @@ -293,7 +293,7 @@ class A2AGuardrailHandler(BaseTranslation): result = obj.get("result", {}) if not isinstance(result, dict): continue - scanned: Final = self._extract_texts_from_result(result=result) + scanned = self._extract_texts_from_result(result=result) if not scanned: continue if orig_i == first_chunk_with_text: