Merge pull request #4479 from e-cesar9/microfix/4444-typo-stirct

micro-fix: fix typo STIRCT → STRICT in safe_eval.py
This commit is contained in:
RichardTang-Aden
2026-02-11 09:48:55 -08:00
committed by GitHub
+1 -1
View File
@@ -145,7 +145,7 @@ class SafeEvalVisitor(ast.NodeVisitor):
def visit_Attribute(self, node: ast.Attribute) -> Any:
# value.attr
# STIRCT CHECK: No access to private attributes (starting with _)
# STRICT CHECK: No access to private attributes (starting with _)
if node.attr.startswith("_"):
raise ValueError(f"Access to private attribute '{node.attr}' is not allowed")