From b982b746e7192cd2c292816ec3ed36a72bc4c16b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 6 Jan 2015 11:24:13 +0100 Subject: [PATCH] Fix problems with += stmts. --- jedi/evaluate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/evaluate/__init__.py b/jedi/evaluate/__init__.py index 1ab78058..67c755ac 100644 --- a/jedi/evaluate/__init__.py +++ b/jedi/evaluate/__init__.py @@ -130,7 +130,7 @@ class Evaluator(object): operator.value = operator.value[:-1] name = str(stmt.get_defined_names()[0]) 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): # Iterate through result and add the values, that's possible # only in for loops without clutter, because they are