Check invariants of sorted dict. Runtime complexity: `O(n)`
(self)
| 605 | |
| 606 | |
| 607 | def _check(self): |
| 608 | """Check invariants of sorted dict. |
| 609 | |
| 610 | Runtime complexity: `O(n)` |
| 611 | |
| 612 | """ |
| 613 | _list = self._list |
| 614 | _list._check() |
| 615 | assert len(self) == len(_list) |
| 616 | assert all(key in self for key in _list) |
| 617 | |
| 618 | |
| 619 | def _view_delitem(self, index): |
no outgoing calls