API reference

python:astx:astx.IfExpr

class IfExpr

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

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

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

AST class for if expression.

Attributes

Methods

Attributes

Search documentation

Type to search.