mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-09 08:18:12 +00:00
fix(guardrails): mark RestrictedPython's unpack guard as untyped
The guarded_unpack_sequence import is partially unknown to basedpyright, which put reportUnknownVariableType one over its merge-base ceiling. RestrictedPython ships no type information, so suppress it on that line with the reason, the form the type-discipline gate accepts.
This commit is contained in:
parent
a1befa124b
commit
a7391b8fdb
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ from RestrictedPython.Eval import default_guarded_getitem
|
|||
from RestrictedPython.Guards import (
|
||||
full_write_guard,
|
||||
guarded_iter_unpack_sequence,
|
||||
guarded_unpack_sequence,
|
||||
guarded_unpack_sequence, # pyright: ignore[reportUnknownVariableType] # RestrictedPython is untyped
|
||||
safer_getattr,
|
||||
)
|
||||
from RestrictedPython.transformer import copy_locations
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue