You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type hint Dict[ast.AST, ...] should instead be Dict[type[ast.AST], ...]. The current hint indicates a dict with keys that are instances of AST, and not the classes themselves.
Thank you for the package!
The text was updated successfully, but these errors were encountered:
Hello! I believe that the dicts
nodes
,unaryOpMap
, anddualOpMap
initialized inSafeEval
's constructor have the wrong type hints. For example,safeeval/safeeval/__init__.py
Line 32 in b16db10
The type hint
Dict[ast.AST, ...]
should instead beDict[type[ast.AST], ...]
. The current hint indicates a dict with keys that are instances ofAST
, and not the classes themselves.Thank you for the package!
The text was updated successfully, but these errors were encountered: