From 8d8dcc2b6eec26347d0765e0452962d9d6df7352 Mon Sep 17 00:00:00 2001 From: Kevin Kelley Date: Sat, 24 Oct 2015 20:12:24 +0000 Subject: [PATCH] Fix bug in branch condition causing lambdas to be treated like scopes and not like functions. --- jedi/api/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index a1d42bd0..75275dd2 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -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: