API reference
python:astx:astx.YieldExpr
class YieldExpr
YieldExpr(value: Optional[Expr], loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/callables.py:762
Declared as: python:astx:astx.callables.YieldExpr
AST class for YieldExpr.
Attributes
-
kind — Type: ASTKind
-
value — Type: Optional[Expr]
Methods
-
__init__ — Initialize the YieldExpr instance.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the AST structure of the object.