Update class definition for given class decorators. Similar to get_class_decorator_hook, but this runs in a later pass when placeholders have been resolved. The hook can return False if some base class hasn't been processed yet using class hooks. It causes all class
(
self, fullname: str
)
| 744 | return None |
| 745 | |
| 746 | def get_class_decorator_hook_2( |
| 747 | self, fullname: str |
| 748 | ) -> Callable[[ClassDefContext], bool] | None: |
| 749 | """Update class definition for given class decorators. |
| 750 | |
| 751 | Similar to get_class_decorator_hook, but this runs in a later pass when |
| 752 | placeholders have been resolved. |
| 753 | |
| 754 | The hook can return False if some base class hasn't been |
| 755 | processed yet using class hooks. It causes all class hooks |
| 756 | (that are run in this same pass) to be invoked another time for |
| 757 | the file(s) currently being processed. |
| 758 | |
| 759 | The hook can be called multiple times per class, so it must be |
| 760 | idempotent. |
| 761 | """ |
| 762 | return None |
| 763 | |
| 764 | def get_metaclass_hook(self, fullname: str) -> Callable[[ClassDefContext], None] | None: |
| 765 | """Update class definition for given declared metaclasses. |
no outgoing calls
no test coverage detected