-
Notifications
You must be signed in to change notification settings - Fork 231
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
patch_function_wrapper does not accept "enabled" argument #234
Comments
Are you using a callable for |
I am using a callable for |
Yeah, for that use case it would indeed be helpful. The |
Very cool, thank you! |
Hello! I was curious if you were still planning on implementing this change. |
Have just overlooked it, been very busy with work over the last few months. Also just back from a trip. As I recover and work out where I am up to with things will try and look at it. |
I have added the |
I would like to use
patch_function_wrapper
to patch a method of a third part module with theenabled
argument as described here in https://wrapt.readthedocs.io/en/latest/decorators.html#dynamically-disabling-decorators. However, this does not seem to be supported out of the box. I was able to easily write my own (see below) but was curious if there was a reason wrapt doesn't support this out of the box or if there is a simpler approach I'm missing.The text was updated successfully, but these errors were encountered: