mirror of
https://github.com/davidhalter/parso.git
synced 2026-05-19 23:10:16 +08:00
Support async for statement
This commit is contained in:
@@ -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