API reference
python:astx:astx.SequenceType
class SequenceType
SequenceType(element_type: DataType)
Source: packages/astx/src/astx/types/collections.py:43
Declared as: python:astx:astx.types.collections.SequenceType
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: DataType
Methods
-
__init__ — Declare the exact element contract of a borrowed sequence.
-
__str__ — Render the sequence element contract.