forked from VimPlug/jedi
Fix bug in branch condition causing lambdas to be treated like scopes and not like functions.
This commit is contained in:
@@ -336,7 +336,7 @@ class BaseDefinition(object):
|
|||||||
raise AttributeError()
|
raise AttributeError()
|
||||||
followed = followed[0] # only check the first one.
|
followed = followed[0] # only check the first one.
|
||||||
|
|
||||||
if followed.type == 'funcdef':
|
if followed.type in ('funcdef', 'lambda'):
|
||||||
if isinstance(followed, er.InstanceElement):
|
if isinstance(followed, er.InstanceElement):
|
||||||
params = followed.params[1:]
|
params = followed.params[1:]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user