kwargs used by decorator being flagged as unused. #3662
Labels
Bug 🪲
Decorators
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs reproduction 🔍
Need a way to reproduce it locally on a maintainer's machine
After upgrading from pylint 2.4.4 to 2.5.2, we started getting unused-argument errors with kwargs that are sent to decorators for Marshmallow. What is weird is that it is not consistent. In my codebase, I encountered these and added this to the disabled list where I was seeing the lint error to ignore it. However there are many other places in the codebase that we use Marshmallow decorators that did not error for me, and other developers are seeing errors on some (but not all) of those.
Steps to reproduce
Current behavior
[W0613(unused-argument), TestSchema.validate_test_url] Unused argument 'kwargs'
Expected behavior
Passes without error
pylint --version output
pylint 1.9.5,
astroid 1.6.6
Python 2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0]
The text was updated successfully, but these errors were encountered: