API reference
python:astx:astx.DictType
class DictType
DictType(key_type: ExprType, value_type: ExprType)
Source: packages/astx/src/astx/types/collections.py:162
Declared as: python:astx:astx.types.collections.DictType
Dictionary data type expression.
Attributes
-
key_type — Type of key.; Type: ExprType
-
value_type — Type of the stored value.; Type: ExprType
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize DictType with key-value types.
-
__str__ — Return string representation of DictType.
Attributes
-
key_type —