PyDocs

Nav

Development Tools

Generator

typing

classDeprecated 3.9
  • Generator(Iterator[YieldType], Generic[YieldType, SendType, ReturnType])
Deprecated since 3.9. collections.abc.Generator now supports subscripting ([]). See PEP 585 and Generic Alias Type.
Deprecated alias to collections.abc.Generator.
Changed in 3.13
  • 3.13: Default values for the send and return types were added.
0 Examples
No examples for typing/Generator.
See Also
No see-alsos for typing/Generator
0 Notes
No notes for Generator