API reference
python:astx:astx.Comprehension.__init__
method __init__
__init__(generators: Iterable[ComprehensionClause] | ASTNodes[ComprehensionClause], loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/comprehensions.py:121
Declared as: python:astx:astx.comprehensions.Comprehension.__init__
Initialize the comprehension expression.
Parameters
-
generators โ Generators.; Type: Iterable[ComprehensionClause] | ASTNodes[ComprehensionClause]
-
loc โ Source coordinates associated with the node.; Type: SourceLocation
-
parent โ Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None