Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.10] bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864) #30873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 25, 2022

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 [email protected]

https://bugs.python.org/issue46491

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 <[email protected]>
@miss-islington
Copy link
Contributor Author

@GBeauregard: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 41e0aea into python:3.10 Jan 25, 2022
@miss-islington miss-islington deleted the backport-e1abffc-3.10 branch January 25, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants