1
0
forked from VimPlug/jedi

Add get_param_names to the function execution, which is needed to do some filtering

This commit is contained in:
Dave Halter
2019-09-03 09:22:31 +02:00
parent 1495a0ec4c
commit 35efdd84d2
2 changed files with 12 additions and 4 deletions

View File

@@ -208,9 +208,7 @@ def _check_name_for_execution(inference_state, context, compare_node, name, trai
# Here we're trying to find decorators by checking the first
# parameter. It's not very generic though. Should find a better
# solution that also applies to nested decorators.
# TODO private access
param_names, _ = value.parent_context._arguments.get_executed_param_names_and_issues(
value.parent_context._value)
param_names = value.parent_context.get_param_names()
if len(param_names) != 1:
continue
values = param_names[0].infer()