API reference
python:astx:astx.callables.FunctionAsyncDef.__init__
method __init__
__init__(prototype: FunctionPrototype, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/callables.py:563
Initialize the FunctionAsync instance.
Parameters
-
prototype — Prototype.; Type: FunctionPrototype
-
body — Statements forming the body.; Type: Block
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None