(PYL-W0613) Function contains unused argument
robotichead opened this issue · comments
Description
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _
or start the name with unused
or _unused
.
Occurrences
There is 1 occurrence of this issue in the repository.
There is also 1 function call in this repository that needs to be fixed also
See all occurrences on DeepSource → deepsource.io/gh/robotichead/NearBeach/issue/PYL-W0613/occurrences/
Can you help me solving this issue?
Sure.
The decorator function def check_permission_denied(min_permission_level):
has an unused variable min_permission_level
.
This particular variable can be removed from this function, and any of the function calls.
@robotichead Please review this PR. I have removed the unused argument min_permission_level
.
Awesome news, your PR has been merged.
Thank you very much for your help :D
@robotichead Thank you!