1
0
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:
Kevin Kelley
2015-10-24 20:12:24 +00:00
parent e0753da6f1
commit 8d8dcc2b6e

View File

@@ -336,7 +336,7 @@ class BaseDefinition(object):
raise AttributeError()
followed = followed[0] # only check the first one.
if followed.type == 'funcdef':
if followed.type in ('funcdef', 'lambda'):
if isinstance(followed, er.InstanceElement):
params = followed.params[1:]
else: