API reference
python:astx:astx.ListType.__init__
method __init__
__init__(element_types: list[ExprType], *, size: int | None = None) -> None
Source: packages/astx/src/astx/types/collections.py:106
Declared as: python:astx:astx.types.collections.ListType.__init__
Initialize ListType with an element type.
Parameters
-
element_types — Types of element.; Type: list[ExprType]
-
size — Requested or declared size.; Type: int | None
Returns
Type: None