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