Remove an item from the registry. Set `strict=False` to fail silently. Otherwise a [`ValueError`][] is raised for an unknown `name`.
(self, name: str, strict: bool = True)
| 385 | self._priority.append(_PriorityItem(name, priority)) |
| 386 | |
| 387 | def deregister(self, name: str, strict: bool = True) -> None: |
| 388 | """ |
| 389 | Remove an item from the registry. |
| 390 | |
| 391 | Set `strict=False` to fail silently. Otherwise a [`ValueError`][] is raised for an unknown `name`. |
| 392 | """ |
| 393 | try: |
| 394 | index = self.get_index_for_name(name) |
| 395 | del self._priority[index] |
| 396 | del self._data[name] |
| 397 | except ValueError: |
| 398 | if strict: |
| 399 | raise |
| 400 | |
| 401 | def _sort(self) -> None: |
| 402 | """ |