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

Method __init__

other/lru_cache.py:18–22  ·  view source on GitHub ↗
(self, key: T | None, val: U | None)

Source from the content-addressed store, hash-verified

16 """
17
18 def __init__(self, key: T | None, val: U | None):
19 self.key = key
20 self.val = val
21 self.next: DoubleLinkedListNode[T, U] | None = None
22 self.prev: DoubleLinkedListNode[T, U] | None = None
23
24 def __repr__(self) -> str:
25 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected