I am trying to create a module that wraps all classes, and use them somewhere else.
class Mixins:
class B:
pass
class C:
pass
b = Mixins.B()
print(Mixins.__all_subclasses__())
# [Mixins.B, Mixins.C]
I mean, I can stack all subclasses in a list after I created one, but not elegant. is there an instinctive built-in for me to do this? python 3.7.