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 Dima.Tisnek
Recipients Dima.Tisnek
Date 2019-10-10.01:39:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570671541.73.0.307162838122.issue38424@roundup.psfhosted.org>
In-reply-to
Content
Currently to annotate a generator, something like `Generator[str, None, None]` is required. Which is a bit confusing and verbose.

Can we allow shorthand, like `Generator[str]` for simple cases?

I'm not entirely certain what the semantics ought to be...
Maybe Generator[t1, t2=Any, t3=None] ?
History
Date User Action Args
2019-10-10 01:39:01Dima.Tisneksetrecipients: + Dima.Tisnek
2019-10-10 01:39:01Dima.Tisneksetmessageid: <1570671541.73.0.307162838122.issue38424@roundup.psfhosted.org>
2019-10-10 01:39:01Dima.Tisneklinkissue38424 messages
2019-10-10 01:39:01Dima.Tisnekcreate