Uh oh!
There was an error while loading. Please reload this page.
bpo-46491: Allow Annotated on outside of Final/ClassVar - #30864
Conversation
This exempts it from checks against Final and ClassVar in order to allow using them in any nesting order.
JelleZijlstra
left a comment
There was a problem hiding this comment.
Thanks for your contribution! A few comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gvanrossum
commented
Jan 25, 2022
Please add me back once this is ready to merge. |
Uh oh!
There was an error while loading. Please reload this page.
JelleZijlstra
left a comment
There was a problem hiding this comment.
@gvanrossum I think this is ready now.
gvanrossum
commented
Jan 25, 2022
Maybe this should be backported? |
JelleZijlstra
commented
Jan 25, 2022
Agree, I added the labels |
miss-islington
commented
Jan 25, 2022
@GBeauregard: Status check is done, and it's a success ✅ . |
miss-islington
commented
Jan 25, 2022
Thanks @GBeauregard for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
bedevere-bot
commented
Jan 25, 2022
GH-30873 is a backport of this pull request to the 3.10 branch. |
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>
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>
bedevere-bot
commented
Jan 25, 2022
GH-30874 is a backport of this pull request to the 3.9 branch. |
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>
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>
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>
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.
https://bugs.python.org/issue46491
Automerge-Triggered-By: GH:gvanrossum