-
-
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
R0913 excludes keyword- and positional-only arguments #8667
Comments
Thanks for this @charliermarsh! I believe that the |
…onal-only and keyword-only parameters. Closes pylint-dev#8667
…onal-only and keyword-only parameters. Closes pylint-dev#8667
@charliermarsh @mbyrnepr2 This going to throw up a lot of warnings in my code. I believe the intention of this rule is to ensure args don't get mixed up. That can't happen with kwargs, as they're explicit. I do believe position-only args should be included though. |
I think that |
I just ran into this on upgrading to 3.0.0 and indeed did have to increase my |
Thirded (fourthed?) on the distinction between too many arguments total and too many positional arguments, and submitted as a separate feature request issue #9099 |
Disable newly uncovered cases of R0913 too-many-arguments. We don't plan to change existing public API now. Since pylint 3.0.0, issue [1] has been fixed, which uncovered several new too-many-arguments cases. 1. pylint-dev/pylint#8667
Disable newly uncovered cases of R0913 too-many-arguments. We don't plan to change existing public API now. Since pylint 3.0.0, issue [1] has been fixed, which uncovered several new too-many-arguments cases. 1. pylint-dev/pylint#8667
see: - pylint-dev/pylint#8667 (cause of the problem) - pylint-dev/pylint#9099 (potential solution)
Bug description
Pylint's
too-many-arguments
rule seems to exclude keyword- and positional-only arguments from the "total argument" count:Configuration
No response
Command used
Pylint output
************* Module a a.py:5:0: R0913: Too many arguments (6/5) (too-many-arguments)
Expected behavior
My instinct is that it should include keyword- and positional-only arguments, but I'm wondering if this is intentional.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: