base
¶
ASTx Data Types module.
Classes:
-
Literal
–Literal Data type.
Literal
¶
Literal(*args, **kwargs)
Bases: DataTypeOps
Literal Data type.
Methods:
-
get_struct
–Return the AST representation for the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/base.py
28 29 30 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/literals/base.py
37 38 39 40 41 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|