API reference
python:astx:astx.WithStmt.__init__
method __init__
__init__(manager: astx.AST, body: astx.Block, target: astx.AST | None = None, loc: SourceLocation = NO_SOURCE_LOCATION, parent: astx.ASTNodes | None = None) -> None
Source: packages/astx/src/astx/context.py:34
Declared as: python:astx:astx.context.WithStmt.__init__
Initialize one with statement.
Parameters
-
manager — Manager.; Type: astx.AST
-
body — Statements forming the body.; Type: astx.Block
-
target — Destination of the operation.; Type: astx.AST | None
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: astx.ASTNodes | None
Returns
Type: None