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:39
Declared as: python:astx:astx.context.WithStmt.__init__
Initialize one with statement.
Parameters
-
manager — Type: astx.AST
-
body — Type: astx.Block
-
target — Type: astx.AST | None
-
loc — Type: SourceLocation
-
parent — Type: astx.ASTNodes | None