]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864)
authorGregory Beauregard <greg@greg.red>
Tue, 25 Jan 2022 06:37:15 +0000 (22:37 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 06:37:15 +0000 (22:37 -0800)
commite1abffca45b60729c460e3e2ad50c8c1946cfd4e
treee4eba6ba266355518f84b57f91cd55130b3ddc47
parent9d3c9788a6ccd4f2f53a147dd0026a316c396976
bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864)

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
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-01-24-23-55-30.bpo-46491.jmIKHo.rst [new file with mode: 0644]