File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33from collections .abc import Callable
4- from typing import Generic , TypeVar
54
6- T = TypeVar ("T" )
7- U = TypeVar ("U" )
85
9-
10- class DoubleLinkedListNode (Generic [T , U ]):
6+ class DoubleLinkedListNode [T , U ]:
117 """
128 Double Linked List Node built specifically for LRU Cache
139
@@ -28,7 +24,7 @@ def __repr__(self) -> str:
2824 )
2925
3026
31- class DoubleLinkedList ( Generic [T , U ]) :
27+ class DoubleLinkedList [T , U ]:
3228 """
3329 Double Linked List built specifically for LRU Cache
3430
@@ -143,7 +139,7 @@ def remove(
143139 return node
144140
145141
146- class LRUCache ( Generic [T , U ]) :
142+ class LRUCache [T , U ]:
147143 """
148144 LRU Cache to store a given capacity of data. Can be used as a stand-alone object
149145 or as a function decorator.
You can’t perform that action at this time.
0 commit comments