-
Notifications
You must be signed in to change notification settings - Fork 163
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
Add support for del
keyword for overridden functions
#279
Add support for del
keyword for overridden functions
#279
Conversation
Codecov Report
@@ Coverage Diff @@
## master #279 +/- ##
=======================================
Coverage 99.37% 99.37%
=======================================
Files 18 18
Lines 635 635
=======================================
Hits 631 631
Misses 4 4
Continue to review full report at Codecov.
|
e4c388f
to
14b7750
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Could you also describe this new recommendation for handling unused function arguments and its benefits in the README, please?
14b7750
to
13951ee
Compare
Going to update the README and rebase from latest master. |
cc84e6f
to
fb659b0
Compare
fb659b0
to
4c2ce60
Compare
@jendrikseipp I have updated the README file. Could you please check? If you have better wording, please provide here, I will kindly make the changes. |
Thanks for the revisions! |
Currently if you override the function of any framework or any library and you are not using all parameters, then the parameters which are not used are identified as
unused
. It is good practice while overriding function/method to keep the signature of it intact. Otherwise you can get potentially some issues with next releases etc.Description
Adding support for
del
operation inside the function. The keyworddel
will mark the variable as used now and we can safely implement the suggested workaround.Related Issue
This PR is addressing the issue #278
Checklist:
tox -e fix-style
to format my code and checked the result withtox -e style
.