-
-
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
no-value-for-parameter false positive #2820
Comments
Thanks for following up on this. I'd be glad for a fix for this, because it's messing my linting results now due to a code change in my project. |
Hey @0xLeon Sure thing, feel free to tackle a PR! |
I'll might give this a try, but can't promise because the legal clearance in my company for providing code to OSS projects is… exhausting, so to say. But that hint on where to start looking into this is actually pretty useful, thanks! I'm new to pylint development, so a starting point is a good thing. |
This issue seems to be fixed when testing with the latest pylint version. |
I do, unfortunately, the following:
still shooting( |
@mallniya what is your pylint's version, please ? I cannot reproduce on the latest main. |
@Pierre-Sassoulas, frankly, I don't usually check the exact version, since I delegate this to the pip in the venv, but
|
From #2778:
I'm not sure if this gives any new insights, but I just wanted to report that I'm able to trigger error 1120 with an even simpler construct, while also having a code example which is more or less exactly the same, but doesn't trigger this error.
E1120 triggered
Output
E1120 not triggered
Output
Conclusion
The difference is in the explicit call to the parent
__init__()
method in the second example. With this in place, E1120 is not triggered. In the first example, E1120 is triggered in the last line where aChild
instance is created.pylint --version output
The text was updated successfully, but these errors were encountered: