1
0
forked from VimPlug/jedi

Replace the get_iterator_types function with a different interface, which enables Jedi to detect invalid for loop inputs that are not iterable.

This commit is contained in:
Dave Halter
2015-09-22 19:18:36 +02:00
parent 786217acad
commit 22da402a7a
4 changed files with 18 additions and 21 deletions

View File

@@ -92,7 +92,7 @@ def _paths_from_assignment(evaluator, expr_stmt):
from jedi.evaluate.iterable import get_iterator_types
from jedi.evaluate.precedence import is_string
for val in get_iterator_types(evaluator.eval_statement(expr_stmt)):
for val in get_iterator_types(evaluator, expr_stmt):
if is_string(val):
yield val.obj