execution_allowed should be called with nodes

This commit is contained in:
Dave Halter
2019-08-28 18:24:26 +02:00
parent 2a27ec37ae
commit 7d28f4ce5b

View File

@@ -46,7 +46,7 @@ class DynamicExecutedParamName(ParamNameWrapper):
def infer(self):
inf = self.parent_context.inference_state
with recursion.execution_allowed(inf, self) as allowed:
with recursion.execution_allowed(inf, self.tree_name) as allowed:
# We need to catch recursions that may occur, because an
# anonymous functions can create an anonymous parameter that is
# more or less self referencing.