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 JelleZijlstra
Recipients BvB93, JelleZijlstra, farcat, gvanrossum, kj, lars2, lukasz.langa, miss-islington, pablogsal, serhiy.storchaka, uriyyo
Date 2021-08-19.18:07:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629396455.36.0.0373576411335.issue44524@roundup.psfhosted.org>
In-reply-to
Content
I don't think we need to support Annotated as a base class. PEP 593 is titled "Flexible function and variable annotations", and base classes are neither of those things. None of the examples in the PEP or the implementation use Annotated as a base class either.

On the other hand, subclassing Annotated[T, ...] does work at runtime in 3.9, so maybe we're bound by backward compatibility now.
History
Date User Action Args
2021-08-19 18:07:35JelleZijlstrasetrecipients: + JelleZijlstra, gvanrossum, farcat, lukasz.langa, serhiy.storchaka, pablogsal, miss-islington, uriyyo, BvB93, kj, lars2
2021-08-19 18:07:35JelleZijlstrasetmessageid: <1629396455.36.0.0373576411335.issue44524@roundup.psfhosted.org>
2021-08-19 18:07:35JelleZijlstralinkissue44524 messages
2021-08-19 18:07:35JelleZijlstracreate