Is it possible to let a superclass to have all subclass's type (Type) as a class variable (ClassVar)?
For example, if we have
class A:
sub_types: ClassVar[List[Type["A"]]]
class B(A): pass
class C(A): pass
class D(A): pass
What I want is A.sub_types = [A, B, C, D] and B.sub_type = [A, B, C, D] and the same for both C and D.