-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
[Feature Request] Add @wraps
in route dectorators
#285
Comments
Can you kindly elaborate a bit more on this, if possible with an example? |
@guilefoylegaurav , sure. So, you can have a look here that Now, robyn also has many decorators like here(https://github.com/sansyrox/robyn/blob/main/robyn/__init__.py#L185) . I wanted to check if we are still preserving the metadata or not |
I see. I get the point. |
@guilefoylegaurav , are you working on this or can I take it up? |
@sansyrox, you can take this up - I haven't been working on this actually. I have a few in mind and shall settle on one soon and update you shortly. |
@guilefoylegaurav , alright perfect. |
Current Behavior
Right now, we are not wrapping the route decorators. This leads to them losing the associated metadata.
Desired Behavior
Use
functools.wraps
to wrap the decorator.Screenshots / Mockups
Alternatives
The text was updated successfully, but these errors were encountered: