I just wondering is it possible to make something like this:
class Base:
__interface__ = BaseInterface
@classmethod
@property
def interface(cls):
return cls.__interface__(cls)
The goal is to have some interface available both as static and instance variable. But the problem is that this interface should be initialized on class constructor.