Skip to content

Commit

Permalink
speed up test for index_tricks symbols from numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Nov 6, 2022
1 parent c375350 commit 4af02f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asteval/asteval.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __init__(self, symtable=None, usersyms=None, writer=None,
self.no_deepcopy = [key for key, val in symtable.items()
if (callable(val)
or inspect.ismodule(val)
or 'numpy.lib.index_tricks' in repr(val))]
or 'numpy.lib.index_tricks' in repr(type(val)))]

def remove_nodehandler(self, node):
"""remove support for a node
Expand Down

0 comments on commit 4af02f7

Please sign in to comment.