Skip to content

conformance: do not require error for Final + ClassVar - #2373

Open
JelleZijlstra wants to merge 3 commits into
python:mainfrom
JelleZijlstra:classvar-final
Open

JelleZijlstra wants to merge 3 commits into
python:mainfrom
JelleZijlstra:classvar-final

Conversation

@JelleZijlstra

Copy link
Copy Markdown
Member

And remove the test case in the ClassVar file; it's redundant as qualifiers_final_annotation
already tests it in a more isolated way.

Fixes #2371.

And remove the test case in the ClassVar file; it's redundant as qualifiers_final_annotation
already tests it in a more isolated way.

Fixes python#2371.

@jorenham jorenham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense; thanks :)

@carljm carljm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread conformance/tests/qualifiers_final_annotation.py Outdated
Comment thread conformance/tests/classes_classvar.py Outdated
Comment thread conformance/tests/qualifiers_final_annotation.py Outdated
@davidhalter davidhalter mentioned this pull request Oct 21, 2026
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.

ClassVar + Final

3 participants