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:53
Declared as: python:astx:astx.literals.collections.LiteralTuple
Literal representation of a Tuple.
Attributes
-
type_ — Type: TupleType
-
loc — Type: SourceLocation
-
elements — Type: tuple[Literal, Ellipsis]
Methods
- __init__ — Initialize LiteralTuple.