FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add `@final` decorator to `NamedTuple` methods that can't be overridden at runtime by DetachHead · Pull Request #15895 · python/typeshed · GitHub

add @final decorator to NamedTuple methods that can't be overridden at runtime - #15895

Merged
srittau merged 1 commit into
python:mainfrom
DetachHead:patch-4
Jun 11, 2026
Merged

add @final decorator to NamedTuple methods that can't be overridden at runtime#15895
srittau merged 1 commit into
python:mainfrom
DetachHead:patch-4

Conversation

Copy link
Copy Markdown
Contributor

fixes #15894

Copy link
Copy Markdown
Contributor

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

srittau 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

srittau merged commit dde362c into python:main Jun 11, 2026
58 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

_make, _asdict and _replace methods on NamedTuple should be decorated with @final

2 participants


Back | FazBrowse Home | New Git URL