[3.10] bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864) by miss-islington · Pull Request #30873 · python/cpython (original) (raw)

We treat Annotated type arg as class-level annotation. This exempts it from checks against Final and ClassVar in order to allow using them in any nesting order.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit e1abffc)

Co-authored-by: Gregory Beauregard greg@greg.red

https://bugs.python.org/issue46491