Skip to content

Change 'self' to 'cls' in mmap.__new__ method#15576

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
jonathandung:patch-2
Mar 30, 2026
Merged

Change 'self' to 'cls' in mmap.__new__ method#15576
JelleZijlstra merged 1 commit intopython:mainfrom
jonathandung:patch-2

Conversation

@jonathandung
Copy link
Copy Markdown
Contributor

In stdlib/mmap.pyi, under the definition of the mmap constructor for windows, the new method is incorrectly annotated with self as the first parameter, where it should be cls as per convention. Since this is trivially fixable, I have not opened an issue.

@github-actions
Copy link
Copy Markdown
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 15f1aea into python:main Mar 30, 2026
51 checks passed
@jonathandung jonathandung deleted the patch-2 branch March 30, 2026 05:48
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