Skip to content

Commit 2c6a49a

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

other/lfu_cache.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ class LFUCache(Generic[T, U]):
197197
"""
198198

199199
# class variable to map the decorator functions to their respective instance
200-
decorator_function_to_instance_map: ClassVar[dict[Callable[[T], U], LFUCache[T, U]]] = {}
200+
decorator_function_to_instance_map: ClassVar[
201+
dict[Callable[[T], U], LFUCache[T, U]]
202+
] = {}
201203

202204
def __init__(self, capacity: int):
203205
self.list: DoubleLinkedList[T, U] = DoubleLinkedList()

other/lru_cache.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ class LRUCache(Generic[T, U]):
210210
"""
211211

212212
# class variable to map the decorator functions to their respective instance
213-
decorator_function_to_instance_map: ClassVar[dict[Callable[[T], U], LRUCache[T, U]]] = {}
213+
decorator_function_to_instance_map: ClassVar[
214+
dict[Callable[[T], U], LRUCache[T, U]]
215+
] = {}
214216

215217
def __init__(self, capacity: int):
216218
self.list: DoubleLinkedList[T, U] = DoubleLinkedList()

0 commit comments

Comments
 (0)