(self)
| 55 | link.next.prev = link.prev |
| 56 | |
| 57 | def __iter__(self) -> t.Generator[str, None, None]: |
| 58 | # Traverse the linked list in order. |
| 59 | root = self.__root |
| 60 | curr = root.next |
| 61 | while curr is not root: |
| 62 | yield curr.key |
| 63 | curr = curr.next |
| 64 | |
| 65 | def __reversed__(self) -> t.Generator[str, None, None]: |
| 66 | # Traverse the linked list in reverse order. |
nothing calls this directly
no outgoing calls
no test coverage detected