You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you cannot reorder the decorators on route methods because Binder expects the wrapped method to have certain attributes. This is a major annoyance because it is super picky in which order stuff needs to be applied.
We should review all the wrappers and use wraps or update_wrapper from functools, which will copy the properties of the wrapped function, so it becomes much more user-friendly.
If there are decorators which change which arguments the function accepts (no_scoping_required is one of those, I think) we should attempt to make it order-independent as well.
The text was updated successfully, but these errors were encountered:
sjamaan
changed the title
Change all decorators to use wraps from functools
Change all decorators to use wraps or update_wrapper from functoolsAug 21, 2020
sjamaan
changed the title
Change all decorators to use wraps or update_wrapper from functools
Change all decorators to use wraps or update_wrapper from functools
Aug 21, 2020
Currently, you cannot reorder the decorators on route methods because Binder expects the wrapped method to have certain attributes. This is a major annoyance because it is super picky in which order stuff needs to be applied.
We should review all the wrappers and use
wraps
orupdate_wrapper
fromfunctools
, which will copy the properties of the wrapped function, so it becomes much more user-friendly.If there are decorators which change which arguments the function accepts (
no_scoping_required
is one of those, I think) we should attempt to make it order-independent as well.The text was updated successfully, but these errors were encountered: