-
-
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
False positive for arguments-differ
when collecting all arguments
#1553
Comments
To any beginner contributors looking to fix this: |
Hi, |
No message is emitted if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function. Closes pylint-dev#1482 Closes pylint-dev#1553
No message is emitted if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function. Closes pylint-dev#1482 Closes pylint-dev#1553
No message is emitted if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function. Closes pylint-dev#1482 Closes pylint-dev#1553
This fix doesn't seem to work when the overridden methods have default values:
Is this to be expected? |
@GergelyKalmar I don't think the example you gave has all the code it should, we can't know what is inherited. |
@Pierre-Sassoulas Sorry, I meant it in the same context as the original example in the issue report, just with a default value added:
This should fail with a |
Thank you. It seems like a bug, I think you can open a new issue with this example :) |
The
arguments-differ
check will complain about this common pattern:PyLint reports:
That code should not trigger the
arguments-differ
check, because that pattern is explicitly just passing through the arguments to the superclass's method.The text was updated successfully, but these errors were encountered: