(self, hook_type: str, hook: Callable)
| 157 | |
| 158 | |
| 159 | def set_hook(self, hook_type: str, hook: Callable): |
| 160 | if hook_type in self.hooks: |
| 161 | self.hooks[hook_type] = hook |
| 162 | else: |
| 163 | raise ValueError(f"Invalid hook type: {hook_type}") |
| 164 | |
| 165 | def execute_hook(self, hook_type: str, *args): |
| 166 | hook = self.hooks.get(hook_type) |
no outgoing calls
no test coverage detected