class documentation

class MixinMeta(type): (source)

View In Hierarchy

Metaclass for mix-ins.

Method __init__ Undocumented
Method super Imitate super() in a mix-in.
Class Variable __mixin_overloads__ Undocumented
Constant _HAS_DYNAMIC_ATTRIBUTES Undocumented
def __init__(cls, name, superclasses, *args, **kwargs): (source)

Undocumented

def super(cls, method): (source)

Imitate super() in a mix-in. This method is a substitute for super(MixinClass, self).overloaded_method(arg), which we can't use because mix-ins appear at the end of the MRO. It should be called as MixinClass.super(self.overloaded_method)(arg) . It works by finding the class on which MixinMeta.__init__ set MixinClass.overloaded_method and calling super() on that class. Args: method: The method in the mix-in. Returns: The method overloaded by 'method'.

__mixin_overloads__: Dict[str, Type[Any]] = (source)

Undocumented

_HAS_DYNAMIC_ATTRIBUTES: bool = (source)

Undocumented

Value
True