Skip to content

Add @final to several stdlib classes that cannot be subclassed at runtime #7213

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 2 commits into from
Feb 14, 2022

Conversation

AlexWaygood
Copy link
Member

No description provided.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

It looks like this might be a subset of the ones found in python/mypy#12091 ? Or am I missing something

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Feb 14, 2022

It looks like this might be a subset of the ones found in python/mypy#12091 ? Or am I missing something

Nope, you're exactly right -- I'm working on a patch for stubtest so I'm using a tweaked version of stubtest on the master branch :)

So yes, these are all "known" about -- but they're still worth fixing!

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Feb 14, 2022

Definitely worth fixing, I was just curious about the subset aspect, e.g. http.HTTPStatus, xxlimited.Xxo are missing. So was wondering if there were false positives or something

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Feb 14, 2022

Definitely worth fixing, I was just curious about the subset aspect, e.g. http.HTTPStatus, xxlimited.Xxo are missing. So was wondering if there were false positives or something

@hauntsaninja
Copy link
Collaborator

Okay, sg, I can add the unix ones!

@hauntsaninja hauntsaninja merged commit 2878050 into python:master Feb 14, 2022
@AlexWaygood AlexWaygood deleted the final branch February 14, 2022 22:47
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.

2 participants