I need to create a class that uses a different base class depending on some condition. With some classes I get the infamous:
TypeError: metaclass conflict: t
This also happens when you try to inherit from a function and not a class.
Eg.
def function(): pass class MyClass(function): pass