API reference
python:astx:astx.types.collections.SequenceType
class SequenceType
SequenceType(element_type: DataType)
Source: packages/astx/src/astx/types/collections.py:61
Read-only ordered, sized, indexable sequence parameter contract.
The element type preserves width and nullability. Frontends may express generic elements; the semantic host validates concrete adapters, borrow lifetimes and supported storage. This type does not own its elements.
Attributes
-
element_type — Type of each element.; Type: DataType
-
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__ — Declare the exact element contract of a borrowed sequence.
-
__str__ — Render the sequence element contract.