1
0
forked from VimPlug/jedi

Jedi didn't care for decorator 'dotted_name' nodes and therefore descriptor tests failed.

This commit is contained in:
Dave Halter
2014-11-18 15:44:32 +01:00
parent 90ce1ac47f
commit b0109343e4
3 changed files with 13 additions and 4 deletions
+6
View File
@@ -192,6 +192,12 @@ class Evaluator(object):
# `x if foo else y` case.
return (self.eval_element(element.children[0]) +
self.eval_element(element.children[-1]))
elif pr.is_node(element, 'dotted_name'):
types = self._eval_atom(element.children[0])
for next_name in element.children[2::2]:
types = list(chain.from_iterable(self.find_types(typ, next_name)
for typ in types))
return types
else:
return precedence.calculate_children(self, element.children)