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