Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
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? ---------- _______________________________________ 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