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