Skip to content

Commit 9d16049

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cecabe3 commit 9d16049

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

other/lru_cache.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from collections.abc import Callable
44

5+
56
class DoubleLinkedListNode[T, U]:
67
"""
78
Double Linked List Node built specifically for LRU Cache
@@ -235,6 +236,7 @@ def __contains__(self, key: T) -> bool:
235236
True
236237
"""
237238
return key in self.cache
239+
238240
def get(self, key: T) -> U | None:
239241
"""
240242
Returns the value for the input key and updates the Double Linked List.
@@ -309,6 +311,7 @@ def cache_decorator_wrapper(*args: T) -> U:
309311
result = func(*args)
310312
decorator_function_to_instance_map[func].put(args[0], result)
311313
return result
314+
312315
def cache_info() -> LRUCache[T, U]:
313316
return decorator_function_to_instance_map[func]
314317

0 commit comments

Comments
 (0)