1
0
forked from VimPlug/jedi

Use SimpleParamName everywhere it's needed

This commit is contained in:
Dave Halter
2019-09-02 09:29:43 +02:00
parent edb17b8e7c
commit b4dc95553f
4 changed files with 16 additions and 11 deletions

View File

@@ -305,8 +305,8 @@ class InferenceState(object):
if is_simple_name:
return [TreeNameDefinition(context, name)]
elif type_ == 'param':
func = tree.search_ancestor(name, 'funcdef', 'lambdef')
func = context.get_root_context().create_value(func)
funcdef = tree.search_ancestor(name, 'funcdef', 'lambdef')
func = context.get_root_context().create_value(funcdef)
return [SimpleParamName(func, name)]
elif type_ in ('import_from', 'import_name'):
module_names = imports.goto_import(context, name)