Author serhiy.storchaka
Recipients BvB93, Jelle Zijlstra, 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 <1629390975.21.0.201680278713.issue44524@roundup.psfhosted.org>
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, Jelle Zijlstra, pablogsal, miss-islington, uriyyo, BvB93, kj, lars2
2021-08-19 16:36:15serhiy.storchakasetmessageid: <1629390975.21.0.201680278713.issue44524@roundup.psfhosted.org>
2021-08-19 16:36:15serhiy.storchakalinkissue44524 messages
2021-08-19 16:36:15serhiy.storchakacreate