diff --git a/jedi/inference/dynamic_params.py b/jedi/inference/dynamic_params.py index a0400758..5d79a291 100644 --- a/jedi/inference/dynamic_params.py +++ b/jedi/inference/dynamic_params.py @@ -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.