API reference

python:astx:astx.types.generic.GeneratorType

class GeneratorType

GeneratorType(yield_type: astx.DataType)

Source: packages/astx/src/astx/types/generic.py:138

First-class generator object type.

Represent one stateful generator value that yields values of one statically known element type when iterated.

Attributes

Methods

Attributes

Search documentation

Type to search.