astx.literals.collections

astx.literals.collections

Source: packages/astx/src/astx/literals/collections.py

title: ASTx Collection Literals.

Classes

LiteralList(Literal)

title: Literal representation of a List.
attributes:
  type_:
    type: ListType
  loc:
    type: SourceLocation
  elements:
    type: list[Literal]

LiteralTuple(Literal)

title: Literal representation of a Tuple.
attributes:
  type_:
    type: TupleType
  loc:
    type: SourceLocation
  elements:
    type: tuple[Literal, Ellipsis]

LiteralSet(Literal)

title: Literal representation of a Set.
attributes:
  type_:
    type: SetType
  loc:
    type: SourceLocation
  elements:
    type: set[Literal]

LiteralDict(Literal)

title: Literal representation of a Dictionary.
attributes:
  type_:
    type: DictType
  loc:
    type: SourceLocation
  elements:
    type: dict[Literal, Literal]