I have a class decorator p()
that can be used only on classes that inherite from some abstract class P
.
So anytime someone uses p
it should be written as follows:
@p()
class Child(P):
...
Is there any way to automatically inherite P using the decorator d() so it would simply be written as follows:
@d()
class Child:
...