astx.literals.base

astx.literals.base

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

title: ASTx Data Types module.

Classes

Literal(DataTypeOps)

title: Literal Data type.
attributes:
  ref:
    type: str
  type_:
    type: ExprType
  loc:
    type: SourceLocation
  value:
    type: Any

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST representation for the object.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct

LiteralNone(Literal)

title: LiteralNone data type.
attributes:
  loc:
    type: SourceLocation
  ref:
    type: str
  value:
    type: None
  type_:
    type: NoneType