From 7d28f4ce5b257f749be4f11387a6c39d2ab86095 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 28 Aug 2019 18:24:26 +0200 Subject: [PATCH] execution_allowed should be called with nodes --- jedi/inference/dynamic_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.