recursive_subclasses¶
- mmtwfs.config.recursive_subclasses(cls)[source] [edit on github]¶
The __subclasses__() method only goes one level deep, but various classes can be separated by multiple inheritance layers. This function recursively walks through the inheritance tree and returns a list of all subclasses at all levels that inherit from the given class.
- Parameters
- cls: any python Class
Python class to get list of subclasses for
- Returns
- all_subclasses: list
List of all subclasses that ultimately inherit from cls