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
It's possible to modify function signature so it would always have a parameter with Request by assigning a new signature into function.__signature__, it should allow you to not use the request parameter explicitly (e.g.):
It would be a nice addition indeed. Have bumped into this issue when exploring solutions for rate limiting at work recently. Providing a reference implementation just in case. Can be extended to inject Depends-based dependencies relatively easily but I don't think that this library needs that anyway.
It's possible to modify function signature so it would always have a parameter with
Request
by assigning a new signature intofunction.__signature__
, it should allow you to not use the request parameter explicitly (e.g.):Implementation is not that tricky or complex, would you be interested in a PR or just a demo of how it could work? @laurentS
The text was updated successfully, but these errors were encountered: