-
Notifications
You must be signed in to change notification settings - Fork 117
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
Parameters differ from overridden 'save' method #94
Comments
Try to use
|
That's a decent work around but for this specific case, the django docs show us a way (not necessarily the way) to override a |
This is in fact not an error, but rather the exact way Django suggests that one overrides the `save()` method on a model. See https://docs.djangoproject.com/en/1.11/topics/db/models/#overriding-predefined-model-methods for more info on that, and pylint-dev/pylint-django#94 for info on this error.
You should be able to disable this warning by adding As to why Django documents the preferred way of overriding using *args and **kwargs I can only speculate that it is because of future compatibility. However this seems wrong to me. At the very least how is one supposed to know what parameters does such an overriden method take? IMO pylint_django is doing what it is supposed to do. If you'd like it different simply disable the warning. Closing as wontfix. |
I think |
If is django version more than 2* |
adding |
I don't think this fixes the issue, does it? The rule itself is useful, so disabling it for the whole project is not a good solution IMO Edit: just read that its closed as wont fix. Is there an option to only disable certain rules for a certain line of code? |
This is an open issue in pylint, not specific to pylint-django: pylint-dev/pylint#1482 @schumannd Commenting |
I find the error message useful when you don't use It would be nice if you could set an option so that the error won't show up when using |
I have
and I'm getting
Line 279 is
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: