We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef62638 commit a7c7bfbCopy full SHA for a7c7bfb
packages/core/src/robotcode/core/utils/safe_eval.py
@@ -47,7 +47,7 @@ class Transformer(ast.NodeTransformer):
47
def __init__(self, allowed_names: Optional[Sequence[str]]) -> None:
48
self.allowed_names = (*self.STD_ALLOWED_NAMES, *(allowed_names or []))
49
50
- def visit_Name(self, node: ast.Name) -> ast.AST: # noqa: N802
+ def visit_Name(self, node: ast.Name) -> ast.AST:
51
if node.id not in self.allowed_names:
52
raise NameError(f"Name access to '{node.id}' is not allowed")
53
0 commit comments