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:
lzhan011 2026-10-24 21:09:56 -05:00
parent 30dd75c81d
commit e43a4d96df

View file

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