I feel like a better criticism is that the decorators return a callable which does not act like the function being decorated. This makes testing and composing functions seemingly obnoxious.
I feel like my ideal interface would leverage type annotations and separate there cli registration from definition, maybe something like
6
u/DanCardin Mar 21 '18 edited Mar 21 '18
I feel like a better criticism is that the decorators return a callable which does not act like the function being decorated. This makes testing and composing functions seemingly obnoxious.
I feel like my ideal interface would leverage type annotations and separate there cli registration from definition, maybe something like
Edit: I may mean hug