MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __repr__

Method __repr__

other/lru_cache.py:24–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.prev: DoubleLinkedListNode[T, U] | None = None
23
24 def __repr__(self) -> str:
25 return (
26 f"Node: key: {self.key}, val: {self.val}, "
27 f"has next: {bool(self.next)}, has prev: {bool(self.prev)}"
28 )
29
30
31class DoubleLinkedList[T, U]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected