API reference

python:astx:astx.context_manager.WithStmt

class WithStmt

WithStmt(items: list[WithItem], body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)

Source: packages/astx/src/astx/context_manager.py:100

AST class for the with statement (context manager).

Attributes

Methods

Attributes

Search documentation

Type to search.