Skip to content

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

@DetachHead

Copy link
Copy Markdown
Contributor

fixes #15894

@github-actions

Copy link
Copy Markdown
Contributor

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

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

Thanks!

@srittau srittau merged commit dde362c into python:main Jun 11, 2026
58 checks passed
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