Return all the classes in the inheritance tree of the current class.
(cls)
| 663 | |
| 664 | @classmethod |
| 665 | def get_inheritance_tree(cls): |
| 666 | """Return all the classes in the inheritance tree of the current class.""" |
| 667 | yield cls |
| 668 | for subclass in cls.__subclasses__(): |
| 669 | yield from subclass.get_inheritance_tree() |
| 670 | |
| 671 | @classmethod |
| 672 | def get_all_variations(cls): |
no outgoing calls
no test coverage detected