-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Using @wraps in decorators is a common pattern to help us know where the decorator originated when debugging or when saving it as a name, otherwise, when you get a hold of the function, it's impossible to know where it came from.
Also, @wraps makes sure the doc string etc match the original function.
Originally posted by @matham in #1 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels