forked from VimPlug/jedi
Introduce an additional node parameter for py__iter__ which helps static analysis.
This commit is contained in:
@@ -164,8 +164,9 @@ class Evaluator(object):
|
||||
# Iterate through result and add the values, that's possible
|
||||
# only in for loops without clutter, because they are
|
||||
# predictable. Also only do it, if the variable is not a tuple.
|
||||
for_iterables = self.eval_element(for_stmt.get_input_node())
|
||||
ordered = list(iterable.py__iter__(self, for_iterables))
|
||||
node = for_stmt.get_input_node()
|
||||
for_iterables = self.eval_element(node)
|
||||
ordered = list(iterable.py__iter__(self, for_iterables, node))
|
||||
|
||||
for index_types in ordered:
|
||||
dct = {str(for_stmt.children[1]): index_types}
|
||||
|
||||
Reference in New Issue
Block a user