mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-11 00:01:54 +08:00
Fixing for loop additions.
This commit is contained in:
@@ -144,9 +144,8 @@ class Evaluator(object):
|
|||||||
name = str(stmt.get_defined_names()[0])
|
name = str(stmt.get_defined_names()[0])
|
||||||
parent = er.wrap(self, stmt.get_parent_scope())
|
parent = er.wrap(self, stmt.get_parent_scope())
|
||||||
left = self.find_types(parent, name, stmt.start_pos)
|
left = self.find_types(parent, name, stmt.start_pos)
|
||||||
# TODO REMOVE or implement
|
if isinstance(stmt.get_parent_until(pr.ForStmt), pr.ForStmt):
|
||||||
if False and isinstance(stmt.parent, pr.ForFlow):
|
# Iterate through result and add the values, that's possible
|
||||||
# iterate through result and add the values, that's possible
|
|
||||||
# only in for loops without clutter, because they are
|
# only in for loops without clutter, because they are
|
||||||
# predictable.
|
# predictable.
|
||||||
for r in types:
|
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]
|
b[1]
|
||||||
|
|
||||||
|
|
||||||
# -----------------
|
|
||||||
# syntax errors
|
|
||||||
# -----------------
|
|
||||||
|
|
||||||
# strange slice
|
|
||||||
z = sorted([1], key = lambda x : x):
|
|
||||||
#? int()
|
|
||||||
z[0]
|
|
||||||
|
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# undefined names
|
# undefined names
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user