API reference
python:astx:astx.LiteralTuple.__init__
method __init__
__init__(elements: tuple[Literal, ...], loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/literals/collections.py:64
Declared as: python:astx:astx.literals.collections.LiteralTuple.__init__
Initialize LiteralTuple.
Parameters
-
elements — Elements.; Type: tuple[Literal, ...]
-
loc — Source coordinates associated with the node.; Type: SourceLocation
Returns
Type: None