I need an expert's help with the Python type system. Can I do something like:
class I(object): pass
class A(I): pass
class B(I): pass
my_parents = [A, B]
class C(*my_parents): pass
Basically I want to determine the inheritance chain at runtime, avoiding any potential issues resulting from the diamond problem. What's the best way to do something like that?