forked from VimPlug/jedi
Fixing for loop additions.
This commit is contained in:
@@ -144,9 +144,8 @@ class Evaluator(object):
|
||||
name = str(stmt.get_defined_names()[0])
|
||||
parent = er.wrap(self, stmt.get_parent_scope())
|
||||
left = self.find_types(parent, name, stmt.start_pos)
|
||||
# TODO REMOVE or implement
|
||||
if False and isinstance(stmt.parent, pr.ForFlow):
|
||||
# iterate through result and add the values, that's possible
|
||||
if isinstance(stmt.get_parent_until(pr.ForStmt), pr.ForStmt):
|
||||
# Iterate through result and add the values, that's possible
|
||||
# only in for loops without clutter, because they are
|
||||
# predictable.
|
||||
for r in types:
|
||||
|
||||
@@ -108,16 +108,6 @@ for x in [l(0), l(1), l(2), l(3), l(4), l(5), l(6), l(7), l(8), l(9), l(10),
|
||||
b[1]
|
||||
|
||||
|
||||
# -----------------
|
||||
# syntax errors
|
||||
# -----------------
|
||||
|
||||
# strange slice
|
||||
z = sorted([1], key = lambda x : x):
|
||||
#? int()
|
||||
z[0]
|
||||
|
||||
|
||||
# -----------------
|
||||
# undefined names
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user