API reference
python:astx:astx.literals.collections.LiteralDict
class LiteralDict
LiteralDict(elements: dict[Literal, Literal], loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/collections.py:130
Literal representation of a Dictionary.
Attributes
-
type_ — Type: DictType
-
loc — Type: SourceLocation
-
elements — Type: dict[Literal, Literal]
Methods
- __init__ — Initialize LiteralDict.