API reference
python:astx:astx.context_manager.WithStmt.__init__
method __init__
__init__(items: list[WithItem], body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/context_manager.py:116
Initialize WithStmt instance.
Parameters
-
items — Type: list[WithItem]
-
body — Type: Block
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]