-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix false positive for no-self-argument
#7301
Fix false positive for no-self-argument
#7301
Conversation
β¦ied to a function but uses a different name. Closes pylint-dev#7300
Pull Request Test Coverage Report for Build 2852893062
π - Coveralls |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good, just some nitpicks I noticed.
@@ -1,8 +1,15 @@ | |||
"""Check for method without self as first argument""" | |||
# pylint: disable=useless-object-inheritance | |||
from __future__ import print_function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch ! If there are a lot of those we could create another merge request to fix all of those python2 remnants at once
Co-authored-by: Jacob Walls <[email protected]>
Co-authored-by: Jacob Walls <[email protected]>
Co-authored-by: Jacob Walls <[email protected]>
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit dc58f0c |
Thank you for fixing the issue @mbyrnepr2!! |
Type of Changes
Description
Fix false positive for
no-self-argument
when a staticmethod is applied to a function but uses a different name.Closes #7300