API reference
python:astx:astx.types.ListType
class ListType
ListType(element_types: list[ExprType], *, size: int | None = None)
Source: packages/astx/src/astx/types/collections.py:93
Declared as: python:astx:astx.types.collections.ListType
List data type expression.
Attributes
-
element_types — Types of element.; Type: list[ExprType]
-
size — Requested or declared size.; Type: int | None
-
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 ListType with an element type.
-
__str__ — Return string representation of ListType.
Attributes
-
size —