Graham Dumpleton
Graham Dumpleton
BTW, try your example again using `wrapt`, but this time set and export the environment variable `WRAPT_DISABLE_EXTENSIONS=true` first. This will cause wrapt to use the pure Python version of the...
Actually, that probably wouldn't make a difference since the signature override code is all implemented in pure Python code. All the same, just check in case.
Few other things which would be helpful. What Python version are you using? How the signature stuff works varies based on the version of Python used. It would also be...
Finally, if PySide doesn't want to play well, you may be able to brute force it to work by using signature adapter function as explained in: * https://wrapt.readthedocs.io/en/latest/decorators.html?highlight=adapter#signature-changing-decorators Eg., ```...
I will do some digging, but on first impression I suspect to resolve resolution order when have multiple inheritance like that with `Bar`, that `Bar` should define a property for...
My fault on: ``` def _decorated_fun_prototype(): pass @my_decorator(adapter=_decorated_fun_prototype) def decorated_fun(): print("This fails") ``` The `adapter` argument is for `wrapt.decorator`. So I meant like example in docs. ``` def _my_adapter_prototype(arg1, arg2):...
I think what is going to be needed is to work out a standalone test app using PySide to see what it returns when using `get_signature()` function on a wrapt...
If you add: ``` from shibokensupport.signature import get_signature print(get_signature(decorated_fun)) ``` does it work, or does the module import fail. Am not sure if that is a top level package, or...
Is your code online on GitHub somewhere so can see the rest of the code you have for your derived ObjectProxy? Also how that is used would be helpful as...
I am indeed blind. If `get_signature()` returns `None`, then we are possibly targeting the wrong function. It may just be returning stuff from its cache, do need to find where...