forked from VimPlug/jedi
Remove search_name and search_name_part from goto returns.
The search_name can be retrieved by checking definitions for it. Definitions should always be names or even better name_parts in case of goto. Therefore we can just get it there.
This commit is contained in:
@@ -43,7 +43,7 @@ def _get_calling_var_args(evaluator, var_args):
|
||||
if len(exp_list) != 2 or exp_list[0] not in ('*', '**'):
|
||||
continue
|
||||
|
||||
names, _ = evaluator.goto(argument, [exp_list[1].get_code()])
|
||||
names = evaluator.goto(argument, [exp_list[1].get_code()])
|
||||
if len(names) != 1:
|
||||
break
|
||||
param = names[0].parent
|
||||
|
||||
Reference in New Issue
Block a user