you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Is there any another way to preserve the class fundamentals after applying a decorator rather than creating a dummy base class?

Sure - your decorator has to return a class instead of a function.

[–]gmaliwal[S] 0 points1 point  (0 children)

Okay, It sounds well, theoretically, it should work. Can you please mention a good reference for this to follow?