问题复现

使用多继承时出现错误

1
the metaclass of a derived class must be a (non-strict) subclass of the metaclasses

原因

Metaclass冲突

解决方法

使用register

1
2
3
Class A(Base):
pass
Base.register(A)