mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-19 04:11:25 +08:00
Support async for statement
This commit is contained in:
1 parent
647073b1b9
commit
4824534f8a
1 file changed
+2
-1
@@ -1161,4 +1161,5 @@ class CompFor(PythonBaseNode):
|
|||||||
"""
|
"""
|
||||||
Returns the a list of `Name` that the comprehension defines.
|
Returns the a list of `Name` that the comprehension defines.
|
||||||
"""
|
"""
|
||||||
return _defined_names(self.children[1])
|
# allow async for
|
||||||
|
return _defined_names(self.children[self.children.index('for') + 1])
|
||||||
Reference in new issue
Block a user