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 <noreply@anthropic.com>
This commit is contained in:
STiFLeR7 2026-09-23 09:41:15 +05:30
parent a8ab4aed7f
commit 4229cea6cf
No known key found for this signature in database

View file

@ -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: