(self, hook: str)
| 87 | self._ns[hook] = sorted(hks, reverse=True, key=lambda h: h.priority) |
| 88 | |
| 89 | def get_hooks(self, hook: str) -> _t.List[_Hook]: |
| 90 | final = self._finals.get(hook, None) |
| 91 | if final: |
| 92 | final = [final] |
| 93 | else: |
| 94 | final = [] |
| 95 | return self._ns.get(hook, []) + final |
| 96 | |
| 97 | def layout(self, priority: _t.Optional[int] = None, final: bool = False): |
| 98 | """ |
no test coverage detected