1
0
forked from VimPlug/jedi

Fixing lambdas.

This commit is contained in:
Dave Halter
2016-11-20 22:09:45 +01:00
parent cbd6713b5e
commit 06efc8fb8c
6 changed files with 28 additions and 19 deletions

View File

@@ -270,8 +270,8 @@ class Evaluator(object):
if element.value in ('False', 'True', 'None'):
types.add(compiled.builtin_from_name(self, element.value))
# else: print e.g. could be evaluated like this in Python 2.7
elif element.isinstance(tree.Lambda):
types = set([er.LambdaWrapper(self, element)])
elif isinstance(element, tree.Lambda):
types = set([er.LambdaWrapper(self, context, element)])
elif element.isinstance(er.LambdaWrapper):
types = set([element]) # TODO this is no real evaluation.
elif element.type == 'expr_stmt':