Skip to content

Correct "FuncBase.has_self_or_cls_argument()", its relates and an error message#20960

Open
hyperkai wants to merge 2 commits intopython:masterfrom
hyperkai:hyperkai-patch-5
Open

Correct "FuncBase.has_self_or_cls_argument()", its relates and an error message#20960
hyperkai wants to merge 2 commits intopython:masterfrom
hyperkai:hyperkai-patch-5

Conversation

@hyperkai
Copy link
Contributor

@hyperkai hyperkai commented Mar 3, 2026

Fix: #20941

I corrected the method name below, its relates and the error message below:

has_self_or_cls_argument -> has_self_or_cls_parameter
From 'Redundant "Self" annotation for the first method argument'
To   'Redundant "Self" annotation for the first method parameter'

But if you're worried that mypy may be broken, I'll revert the changes except the error message above.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

mypy-internally in FuncBase class, the method name has_self_or_cls_argument() is wrong saying argument instead of parameter

1 participant