API reference

python:astx:astx.context_manager.WithItem

class WithItem

WithItem(context_expr: Expr, instance_name: Optional[Identifier] = None)

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

AST class representing an item inside a with statement.

Attributes

Methods

Attributes

Search documentation

Type to search.