nearbeach / NearBeach

NearBeach is an open sourced project management tool, helping you keep track of your project. You can track requirements, projects and tasks

Home Page:https://nearbeach.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(PYL-W0613) Function contains unused argument

robotichead opened this issue · comments

commented

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?

commented

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.

commented

Awesome news, your PR has been merged.

Thank you very much for your help :D