This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srittau
Recipients srittau
Date 2017-10-05.08:35:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507192517.86.0.213398074469.issue31700@psf.upfronthosting.co.za>
In-reply-to
Content
Currently typing.Generator requires three arguments: Generator[YieldType, SendType, ReturnType].

At least for me, passing values to a generator is a very rare case. I suggest to allow only one argument to be passed to Generator: Generator[YieldType], where the other arguments default to None. This makes the common case more readable and is less error-prone. (I always forget the second and third argument, since that use case is so uncommon for me.)
History
Date User Action Args
2017-10-05 08:35:17srittausetrecipients: + srittau
2017-10-05 08:35:17srittausetmessageid: <1507192517.86.0.213398074469.issue31700@psf.upfronthosting.co.za>
2017-10-05 08:35:17srittaulinkissue31700 messages
2017-10-05 08:35:17srittaucreate