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