We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The checker for unused arguments fails to report on functions that do not return anything but contain a raise statement.
""" unused-argument check. """ def my_function(arg_1, *args, arg_2=None): """My function does not use arg.""" if arg_1 == 42: raise ValueError()
No unused arguments are reported.
Unused arguments should be reported.
pylint 2.4.4 astroid 2.3.3 Python 3.6.6 (default, Sep 25 2019, 09:49:31) [GCC 5.4.0 20160609]
The text was updated successfully, but these errors were encountered:
Emit unused-argument for functions that partially uses their argu…
unused-argument
dde9ac3
…ment list before raising an exception. Close #3246
ab9e7c3
…ment list before raising an exception. (#3385) Close #3246
Successfully merging a pull request may close this issue.
The checker for unused arguments fails to report on functions that do not return anything but contain a raise statement.
Steps to reproduce
Current behavior
No unused arguments are reported.
Expected behavior
Unused arguments should be reported.
pylint --version output
pylint 2.4.4
astroid 2.3.3
Python 3.6.6 (default, Sep 25 2019, 09:49:31)
[GCC 5.4.0 20160609]
The text was updated successfully, but these errors were encountered: