Skip to content
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

Use Final for Constant Literals in the stdlib #12332

Merged
merged 16 commits into from
Jul 15, 2024

Conversation

max-muoto
Copy link
Contributor

@max-muoto max-muoto commented Jul 13, 2024

Use Final for constant literals per this comment.

This comment has been minimized.

@max-muoto max-muoto marked this pull request as ready for review July 13, 2024 17:39
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks! Mostly looks great, but a few changes I suggest deferring to a followup:

stdlib/_osx_support.pyi Outdated Show resolved Hide resolved
stdlib/_winapi.pyi Outdated Show resolved Hide resolved
stdlib/argparse.pyi Outdated Show resolved Hide resolved
stdlib/bdb.pyi Outdated Show resolved Hide resolved
stdlib/distutils/debug.pyi Outdated Show resolved Hide resolved
stdlib/multiprocessing/reduction.pyi Outdated Show resolved Hide resolved
stdlib/site.pyi Outdated Show resolved Hide resolved
@max-muoto
Copy link
Contributor Author

Thanks! Mostly looks great, but a few changes I suggest deferring to a followup:

Thanks! Sorry didn't mean to make some of those changes you saw.

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

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

@AlexWaygood AlexWaygood changed the title Use Final for Constant Literals Use Final for Constant Literals in the stdlib Jul 15, 2024
@AlexWaygood AlexWaygood merged commit 0df6028 into python:main Jul 15, 2024
63 checks passed
max-muoto added a commit to max-muoto/typeshed that referenced this pull request Jul 23, 2024
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
max-muoto added a commit to max-muoto/typeshed that referenced this pull request Sep 8, 2024
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
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