API reference

python:astx:astx.flows.CaseStmt.__init__

method __init__

__init__(body: Block, condition: Optional[Expr] = None, default: bool = False, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None

Source: packages/astx/src/astx/flows.py:1082

Initialize the CaseStmt instance.

Parameters

Search documentation

Type to search.