mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 17:41:25 +08:00
Fix assert issues in combination with comprehensions.
This commit is contained in:
1 parent
5f89ceb385
commit
b9e7a2eb95
1 file changed
+5
@@ -1322,3 +1322,8 @@ class CompFor(Simple):
|
|||||||
|
|
||||||
def scope_names_generator(self, position):
|
def scope_names_generator(self, position):
|
||||||
yield self, []
|
yield self, []
|
||||||
|
|
||||||
|
@property
|
||||||
|
def asserts(self):
|
||||||
|
"""Since it's a scope, it can be asked for asserts."""
|
||||||
|
return []
|
||||||
Reference in new issue
Block a user