1
0
forked from VimPlug/jedi

Fix an issue with combinations of InstanceElement and Lambdas.

This commit is contained in:
Dave Halter
2014-12-01 11:26:35 +01:00
parent 88853c78f4
commit 50752df6dd
2 changed files with 12 additions and 6 deletions

View File

@@ -176,8 +176,10 @@ class Evaluator(object):
elif isinstance(element, pr.Keyword):
# For False/True/None
return [compiled.builtin.get_by_name(element.value)]
elif isinstance(element, pr.Lambda):
elif element.isinstance(pr.Lambda):
return [er.LambdaWrapper(self, element)]
elif element.isinstance(er.LambdaWrapper):
return [element] # TODO this is no real evaluation.
elif element.type == 'power':
types = self._eval_atom(element.children[0])
for trailer in element.children[1:]: