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 serhiy.storchaka
Recipients BvB93, JelleZijlstra, farcat, gvanrossum, kj, lars2, lukasz.langa, miss-islington, pablogsal, serhiy.storchaka, uriyyo
Date 2021-08-19.16:36:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
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?
History
Date User Action Args
2021-08-19 16:36:15serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, farcat, lukasz.langa, JelleZijlstra, pablogsal, miss-islington, uriyyo, BvB93, kj, lars2
2021-08-19 16:36:15serhiy.storchakasetmessageid: <[email protected]>
2021-08-19 16:36:15serhiy.storchakalinkissue44524 messages
2021-08-19 16:36:15serhiy.storchakacreate