-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Extra arg for "method" (self) and "classmethod" (cls) #10443
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
base: main
Are you sure you want to change the base?
Conversation
Hey @fgallaire thank you for contributing to pylint. You can launch the tests locally with pytest, there's more information in the contributor guide : https://pylint.readthedocs.io/en/stable/development_guide/contributor_guide/index.html |
Hello @Pierre-Sassoulas thanks for the feedback, just coded it as I was confronted to the problem (convenient function with 5 parameters for a class with an I will try to fix the commit. |
for more information, see https://pre-commit.ci
Looks good. I believe there is an open issue for this. Can we find and link it? #8675 I think? |
Hi @jacobtylerwalls #8675 issue, which I didn't even know existed, perfectly explains what I wanted to fix when I first ran Pylint on my new project. Reassured to see that other people had the same understanding of this behavior as me. Just surprised it hasn't been fixed for a long time! |
Type of Changes
Description
(non static) method and classmethod max_arg has to be incremented over the function and staticmethod one, to leave self and cls alone.
Closes #8675