API reference
python:astx:astx.callables.YieldStmt.__init__
method __init__
__init__(value: Optional[Expr] = None, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/callables.py:836
Initialize the YieldStmt instance.
value: The expression to yield (optional) loc: Source location of the statement parent: Parent AST node
Parameters
-
value โ Type: Optional[Expr]
-
loc โ Type: SourceLocation
-
parent โ Type: Optional[ASTNodes]