API reference

python:astx:astx.AssertStmt

class AssertStmt

AssertStmt(condition: astx.Expr, message: astx.Expr | None = None, loc: astx.SourceLocation = astx.base.NO_SOURCE_LOCATION, parent: astx.ASTNodes[astx.AST] | None = None)

Source: packages/astx/src/astx/system.py:15

Declared as: python:astx:astx.system.AssertStmt

AssertStmt AST class.

Represent one fatal assertion statement with an optional failure message.

Attributes

Methods

Attributes

Search documentation

Type to search.