Message 399924 - Python tracker

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.

Content
There are some side effects of setting _name. In 3.9:

>>> class X(Annotated[int, (1, 10)]): pass
... 
>>> X.__mro__
(<class '__main__.X'>, <class 'int'>, <class 'object'>)

In 3.10:

>>> class X(Annotated[int, (1, 10)]): pass
... 
>>> X.__mro__
(<class '__main__.X'>, <class 'int'>, <class 'typing.Generic'>, <class 'object'>)

Now a subclass of an Annotated alias is a generic type. Should it be?