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

Method __repr__

other/lfu_cache.py:26–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected