forked from VimPlug/jedi
Fix an issue with combinations of InstanceElement and Lambdas.
This commit is contained in:
@@ -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:]:
|
||||
|
||||
Reference in New Issue
Block a user