Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Thank you Ken Jin.

But it does not explain why objects which currently have __name__/__qualname__ 
is None should have these attribute. There is no builtin data type that 
corresponds to ClassVar, Final, Literal, Concatenate or TypeGuard. And (int | 
str) does not have these attributes. Would not be better to raise 
AttributeError instead of returning None?

----------

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

Reply via email to