![Python Programming Tutorial # 167 | How to use functools wraps Decorator in Python - English - YouTube Python Programming Tutorial # 167 | How to use functools wraps Decorator in Python - English - YouTube](https://i.ytimg.com/vi/9Tzv9rQUD_o/maxresdefault.jpg)
Python Programming Tutorial # 167 | How to use functools wraps Decorator in Python - English - YouTube
![functools.wraps inferred signature breaks with non-standard wrapper arguments · Issue #3939 · microsoft/pyright · GitHub functools.wraps inferred signature breaks with non-standard wrapper arguments · Issue #3939 · microsoft/pyright · GitHub](https://user-images.githubusercontent.com/13813363/189932716-74b5da52-1312-4ced-a6e6-9e5f42d28994.png)
functools.wraps inferred signature breaks with non-standard wrapper arguments · Issue #3939 · microsoft/pyright · GitHub
Rodrigo 🐍📝 on Twitter: "Python 🐍 decorators are very powerful! But they can override some important meta-information about your functions... 😱 For example, when you decorate your functions, they lose their docstring...
![Bob Belderbos | @bbelderbos@fosstodon.org on Twitter: "When writing #Python decorators, it's best practice to use functools.wraps to not lose the docstring and other metadata of the function you are decorating: https://t.co/8IAp1ZYuJx" / Bob Belderbos | @bbelderbos@fosstodon.org on Twitter: "When writing #Python decorators, it's best practice to use functools.wraps to not lose the docstring and other metadata of the function you are decorating: https://t.co/8IAp1ZYuJx" /](https://pbs.twimg.com/media/FGBZufVXMAMp927.jpg:large)