-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 signature-differs
when collecting all arguments
#3737
Comments
+1 I hit this today as well; this is a very common idiom and shouldn't trigger a warning. |
I've prepared a small PR that fixes this issue: #3988 |
When do you plan to release new pylint? Right now pylint from pypi and also from Fedora 33 are both erroring with this issue. This blocks FreeIPA CI... |
Waiting for the release of Pylint. See pylint-dev/pylint#3737
Any news when this fix will be merged to master? |
The fix has been already merged some time ago: #3988 In fact, this fix should already be included in pylint 2.7.0+ as far as I remember. |
My bad I had 2.6 version, after upgrade everything works, thanks :)! |
This is a very similar bug to #1553. The main difference is that in this case we set a default value to one of the parameters in the function that we override in the subclass (see
elit=None
).Steps to reproduce
Create a file
lorem.py
as follows:Note that this is a particularly common pattern in Django, for example when overriding the
save
method of models (see an example in the official documentation).Current behavior
Run pylint on the file (
pylint lorem.py
):Expected behavior
There is no error reported.
pylint --version output
The text was updated successfully, but these errors were encountered: