API reference
python:astx:astx.types.TupleType
class TupleType
TupleType(element_types: list[ExprType])
Source: packages/astx/src/astx/types/collections.py:193
Declared as: python:astx:astx.types.collections.TupleType
Tuple data type expression.
Attributes
-
element_types — Types of element.; Type: list[ExprType]
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize TupleType with multiple element types.
-
__str__ — Return string representation of TupleType.