Say I have 2 different implementations of a class
class ParentA: def initialize(self): pass def some_event(self): pass def orde
Simply store the class-object in a variable (in the example below, it is named base), and use the variable in the base-class-spec of your class statement.
base
class
def get_my_code(base): class MyCode(base): def initialize(self): ... return MyCode my_code = get_my_code(ParentA)