mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
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:
parent
a8ab4aed7f
commit
4229cea6cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue