Guido van Rossum <gu...@python.org> added the comment:

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").

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42881>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to