API reference
python:astx:astx.TupleType
class TupleType
TupleType(element_types: list[ExprType])
Source: packages/astx/src/astx/types/collections.py:191
Declared as: python:astx:astx.types.collections.TupleType
Tuple data type expression.
Attributes
- element_types — Type: list[ExprType]
Methods
-
__init__ — Initialize TupleType with multiple element types.
-
__str__ — Return string representation of TupleType.