79347776

Date: 2025-01-11 08:59:48
Score: 0.5
Natty:
Report link

I would say the best way to generically wrap all methods of a class, regardless the method is staticmethod, classmethod or any already-decorated method, is to use the Descriptor protocol.

You can read more about my solution in the blog post: https://asyncmove.com/blog/2025/01/all-decorators-systematically-decorating-python-class-methods/

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jim