False positive W0613 with keyword only argument #5771
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Milestone
Bug description
Using a keyword-only argument is triggering a W0613(unused-argument) warning where it is not occurring if the (unused) argument is a keyword argument. Below,
B.add
does not issue the warning, butD.add
does.kwoa.py
Configuration
No response
Command used
Pylint output
Expected behavior
I believe there are two possibilities here but I had been operating under the assumption that this warning would not occur for
D.add
given that is not the behavior forB.add
. The other option is that a warning should also be issuedB.add
.Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: