I have a base class A
, and a decorator behavior
. Both has different behaviors but sometimes it can be used at the same time.
There is to implement a new class decorator new_behavior
that applies behavior
and "inject" A
as a parent class?
Something like this:
@new_behavior
class B:
...
So B
will behave just like if it was declared like class B(A):
but B
also inhirts all @behavior
behaviors?