API reference
python:astx:astx.ComprehensionClause.__init__
method __init__
__init__(target: Expr, iterable: Expr, conditions: Optional[Iterable[Expr] | ASTNodes[Expr]] = None, is_async: bool = False, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/comprehensions.py:51
Declared as: python:astx:astx.comprehensions.ComprehensionClause.__init__
Initialize the comprehension clause.
Parameters
-
target — Type: Expr
-
iterable — Type: Expr
-
conditions — Type: Optional[Iterable[Expr] | ASTNodes[Expr]]
-
is_async — Type: bool
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]