4 ms·
Decorators can be used in any way you want. This is actually an absolutely fine use of decorators to add metadata/annotations to a given function. Critiques of
by orf 7y ago
Decorators can be used in any way you want. This is actually an absolutely fine use of decorators to add metadata/annotations to a given function.
Critiques of any library are great, but you need to expand on vague points: "I also doubt that click does decorators correctly too", or how you would ever expect them (or even want them??) to work on an instance method. It might be that you're misunderstanding the library and how it should be used rather than it being not worth using.
I find it absolutely perfect for a lot of situations.