forked from VimPlug/jedi
Use SimpleParamName everywhere it's needed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user