-
Notifications
You must be signed in to change notification settings - Fork 815
Decorators break function signatures #77
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
Comments
Would you like to send a pull request to fix this? wrapt appears to have C dependencies, so that's not going to work out. |
So you could live with depending on decorator? It’s python-only without further dependencies. I still have the problem that I can’t run the tests locally on OS X because of the |
I'd prefer to copy it in. While it's old enough that it should be everywhere, let's play it safe. |
As you wish. I still need you to fix the test suite tho. :) |
If you've got an alternative way to get the machine's IP that also works on Windows and Linux then I'm happy to change it. |
I‘m fine with if you just skip the test on OS X (and mostly likely all BSDs? at least FreeBSD breaks too). I just need a way to run tests locally. Once that’s fixed, I can do the tox/Travis CI/codecov integration for you too if you wish. By not being able to run the test suite on all BSDs you’re limiting the set of contributors quite a bit. |
The client does a common anti-pattern of doing a closure with
*args,**kwargs
but that sadly breaks introspection of wrapped methods.This is a concrete problem e.g. if you wrap Pyramid views that get different arguments depending on how many arguments are present (either
context, request
or justrequest
).You can find more information on this in these blog posts: https://github.com/GrahamDumpleton/wrapt/tree/master/blog
Solutions to it is to either use or copy/paste from the wrapt (better) or decorator (OK-ish) packages.
The text was updated successfully, but these errors were encountered: