1
0
forked from VimPlug/jedi

Fix comprehensions type issues.

This commit is contained in:
Dave Halter
2015-09-22 02:13:20 +02:00
parent 4ffc24a919
commit 3a306a4f25
5 changed files with 47 additions and 26 deletions

View File

@@ -517,7 +517,7 @@ class Node(BaseNode):
For static analysis.
"""
result = []
if self.type not in Node._IGNORE_EXECUTE_NODES:
if self.type not in Node._IGNORE_EXECUTE_NODES and not last_added:
result.append(self)
last_added = True