MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / __reversed__

Method __reversed__

uritemplate/orderedset.py:65–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 curr = curr.next
64
65 def __reversed__(self) -> t.Generator[str, None, None]:
66 # Traverse the linked list in reverse order.
67 root = self.__root
68 curr = root.prev
69 while curr is not root:
70 yield curr.key
71 curr = curr.prev
72
73 def pop(self, last: bool = True) -> str:
74 if not self:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected