1
0
forked from VimPlug/jedi

Use Context.create_name instead of weird playing with params everywhere

This commit is contained in:
Dave Halter
2019-09-02 09:38:54 +02:00
parent b4dc95553f
commit a0cadd9375
4 changed files with 15 additions and 13 deletions
+1
View File
@@ -305,6 +305,7 @@ class InferenceState(object):
if is_simple_name:
return [TreeNameDefinition(context, name)]
elif type_ == 'param':
assert False
funcdef = tree.search_ancestor(name, 'funcdef', 'lambdef')
func = context.get_root_context().create_value(funcdef)
return [SimpleParamName(func, name)]