forked from VimPlug/jedi
More and probably the last tuple assignment stuff.
This commit is contained in:
@@ -190,7 +190,11 @@ class Evaluator(object):
|
||||
types = self._eval_trailer(types, trailer)
|
||||
|
||||
return types
|
||||
elif pr.is_node(element, 'testlist_star_expr'):
|
||||
# The implicit tuple in statements.
|
||||
return [iterable.Array(self, element, pr.Array.TUPLE)]
|
||||
else:
|
||||
print(element)
|
||||
left, operator, right = element.children
|
||||
return precedence.calculate(self, self.eval_element(left), operator,
|
||||
self.eval_element(right))
|
||||
|
||||
@@ -218,7 +218,7 @@ class Array(use_metaclass(CachedMetaClass, IterableWrapper)):
|
||||
return getattr(self._array, name)
|
||||
|
||||
def _items(self):
|
||||
if pr.is_node(self._array_node, 'testlist_comp'):
|
||||
if pr.is_node(self._array_node, 'testlist_comp') or pr.is_node(self._array_node, 'testlist_star_expr'):
|
||||
return self._array_node.children[::2]
|
||||
else:
|
||||
return [self._array_node]
|
||||
|
||||
Reference in New Issue
Block a user