class M_C(M_A, M_B):
    pass


class C(A, B, metaclass=M_C):
    pass
python 3: TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases