Skip to content

Commit

Permalink
Add allowed_attrs to EvalWithCompoundTypes too
Browse files Browse the repository at this point in the history
  • Loading branch information
danthedeckie committed Nov 4, 2024
1 parent fb2d9dc commit b0ec986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpleeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ class EvalWithCompoundTypes(SimpleEval):

_max_count = 0

def __init__(self, operators=None, functions=None, names=None):
super(EvalWithCompoundTypes, self).__init__(operators, functions, names)
def __init__(self, operators=None, functions=None, names=None, allowed_attrs=None):
super(EvalWithCompoundTypes, self).__init__(operators, functions, names, allowed_attrs)

self.functions.update(list=list, tuple=tuple, dict=dict, set=set)

Expand Down

0 comments on commit b0ec986

Please sign in to comment.