API reference
python:astx:astx.types.IterationConstraint.__init__
method __init__
__init__(element_type: DataType, *, requires_iterator: bool = False) -> None
Source: packages/astx/src/astx/types/collections.py:90
Declared as: python:astx:astx.types.collections.IterationConstraint.__init__
Require an iterable or iterator over a specific item type.
Parameters
-
element_type — Exact type of yielded items.; Type: DataType
-
requires_iterator — Require advancement on the input itself.; Type: bool
Returns
Type: None