API reference

python:astx:astx.IfExpr.__init__

method __init__

__init__(condition: Expr, then: Block, else_: Optional[Block] = None, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None

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

Declared as: python:astx:astx.flows.IfExpr.__init__

Initialize the IfExpr instance.

Parameters

Search documentation

Type to search.