Find all classes that inherit *method_name* from *parent* (not overriding it).
(
parent: str, method_name: str, class_bases: dict, class_methods: dict
)
| 463 | |
| 464 | |
| 465 | def _find_all_inheritors( |
| 466 | parent: str, method_name: str, class_bases: dict, class_methods: dict |
| 467 | ) -> set[str]: |
| 468 | """Find all classes that inherit *method_name* from *parent* (not overriding it).""" |
| 469 | return { |
| 470 | cls |
| 471 | for cls in class_bases |
| 472 | if cls != parent |
| 473 | and method_name not in class_methods.get(cls, set()) |
| 474 | and _find_method_definition(cls, method_name, class_bases, class_methods) |
| 475 | == parent |
| 476 | } |
| 477 | |
| 478 | |
| 479 | def remove_expected_failures( |
no test coverage detected