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 gvanrossum
Recipients eric.smith, gvanrossum, larry
Date 2021-01-11.00:00:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610323258.81.0.169145353452.issue42881@roundup.psfhosted.org>
In-reply-to
Content
I agree this is a bit unfortunate, but I also think it's a bit late to change now.

However *if* we're going to change it we should do it now (in 3.10) or never. Given that we never *write* type(None) in annotations, it's unfortunate to get that back whenever we wrote None.

I personally don't care because I never use get_type_hints() -- I don't use annotations at runtime (which may also be how this snuck into  get_type_hints() in the first place -- some misguided idea that it should return a "type").
History
Date User Action Args
2021-01-11 00:00:58gvanrossumsetrecipients: + gvanrossum, larry, eric.smith
2021-01-11 00:00:58gvanrossumsetmessageid: <1610323258.81.0.169145353452.issue42881@roundup.psfhosted.org>
2021-01-11 00:00:58gvanrossumlinkissue42881 messages
2021-01-11 00:00:58gvanrossumcreate