mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-02 22:56:54 +08:00
Fix problems with += stmts.
This commit is contained in:
@@ -130,7 +130,7 @@ class Evaluator(object):
|
|||||||
operator.value = operator.value[:-1]
|
operator.value = operator.value[:-1]
|
||||||
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, search_global=True)
|
||||||
if isinstance(stmt.get_parent_until(pr.ForStmt), pr.ForStmt):
|
if isinstance(stmt.get_parent_until(pr.ForStmt), pr.ForStmt):
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user