API reference
python:astx:astx.operators.AssignmentExpr.__init__
method __init__
__init__(targets: Iterable[Expr] | ASTNodes[Expr], value: Expr, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/operators.py:100
Initialize the assignment expression.
Parameters
-
targets — Targets.; Type: Iterable[Expr] | ASTNodes[Expr]
-
value — Value to process.; Type: Expr
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None