baybe.utils.basic.get_subclasses¶ baybe.utils.basic.get_subclasses(cls: _C, recursive: bool = True, abstract: bool = False)[source]¶ Return a list of subclasses for the given class. Parameters: cls (TypeVar(_C, bound= type)) – The base class to retrieve subclasses for. recursive (bool) – If True, indirect subclasses (i.e. subclasses of subclasses) are included. abstract (bool) – If True, abstract subclasses are included. Return type: list[TypeVar(_C, bound= type)] Returns: A list of subclasses for the given class.