Sort the registry by priority from highest to lowest. This method is called internally and should never be explicitly called.
(self)
| 399 | raise |
| 400 | |
| 401 | def _sort(self) -> None: |
| 402 | """ |
| 403 | Sort the registry by priority from highest to lowest. |
| 404 | |
| 405 | This method is called internally and should never be explicitly called. |
| 406 | """ |
| 407 | if not self._is_sorted: |
| 408 | self._priority.sort(key=lambda item: item.priority, reverse=True) |
| 409 | self._is_sorted = True |
no outgoing calls
no test coverage detected