-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can choose decorators that mutate a function's signature #2926
Conversation
This is an awesome change and thanks for the hard work on this project! Would absolutely love it if this was incorporated into a new release. Looks like there hasn't been once since March? |
Not yet @schrockn but the new release would happen very soon. |
Any update regarding the release? |
@PCManticore This very simple change would allow us to remove a bunch of Serves us right for still using python 2 though :( |
this is great! Is there a way to define |
@beasteers it don't seem so. The only way seems to use the rcfile. |
Description
This adds a new option
function_mutators
that allowstoo-many-function-args
,unexpected-keyword-arg
, andno-value-for-parameter
to not get raised for functions that are decorated with a decorator mentioned infunction_mutators
.I figured it would be too difficult to try and infer what a decorator was doing so this seemed like the best solution, even though it means that there will be cases where a function is called with incorrect arguments will be missed by pylint when the function is decorated with a mutator decorator.
Type of Changes
Related Issue
Close #259