API reference
python:astx:astx.LiteralTuple
class LiteralTuple
LiteralTuple(elements: tuple[Literal, ...], loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/collections.py:48
Declared as: python:astx:astx.literals.collections.LiteralTuple
Literal representation of a Tuple.
Attributes
-
type_ — Type associated with this expression.; Type: TupleType
-
loc — Source coordinates attached to this node.; Type: SourceLocation
-
elements — Elements.; Type: tuple[Literal, ...]
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
-
value — Type: Any
Methods
- __init__ — Initialize LiteralTuple.