API reference

python:astx:astx.Cast

class Cast

Cast(value: astx.DataType, target_type: astx.DataType, *, mode: NumericMode = NumericMode.CHECKED)

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

Declared as: python:astx:astx.system.Cast

Cast AST node for type conversions.

Represents a cast of value to a specified target_type.

Attributes

Methods

Attributes

Search documentation

Type to search.