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 levkivskyi
Recipients gvanrossum, levkivskyi, thehesiod
Date 2019-02-16.12:11:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550319118.24.0.416147284085.issue36009@roundup.psfhosted.org>
In-reply-to
Content
This question appeared several times before, and the conclusion is that we are not going to do this.

There are many cases in standard library that are generic in stubs (and by nature) but are not declared as such at runtime, so we simply can't provide a typing equivalent for all of them.

In Python 3.7 you can just use from __future__ import annotations for those, and/or use the recipes described here https://mypy.readthedocs.io/en/latest/common_issues.html#using-classes-that-are-generic-in-stubs-but-not-at-runtime

Maybe at some point we will start using `Generic` in standard library, but for now I am closing this as wontfix.
History
Date User Action Args
2019-02-16 12:11:58levkivskyisetrecipients: + levkivskyi, gvanrossum, thehesiod
2019-02-16 12:11:58levkivskyisetmessageid: <1550319118.24.0.416147284085.issue36009@roundup.psfhosted.org>
2019-02-16 12:11:58levkivskyilinkissue36009 messages
2019-02-16 12:11:58levkivskyicreate