Łukasz Langa <luk...@langa.pl> added the comment:

Serhiy, good question. As builtin generics return the base `__name__` for 
subscribed version, it makes sense to do the same for the versions in `typing`, 
especially if their unsubscribed versions provide `__name__`.

As to "why even have `__name__` in the first place?", it's for introspection 
purposes.

----------

_______________________________________
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