mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
execution_allowed should be called with nodes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user