API reference
python:astx:astx.RangeType
class RangeType
Source: packages/astx/src/astx/types/collections.py:41
Declared as: python:astx:astx.types.collections.RangeType
Immutable, independently iterable integer progression value.
Represent a compact arithmetic progression, not contiguous list storage or a stateful generator. Supported numeric domains, representation, construction, access, and iteration validity belong to semantic hosts.
Attributes
-
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
- __str__ — Render the range type name.