Skip to content

Commit 97b7f7b

Browse files
committed
Try to fix ruff
1 parent 1a1cb76 commit 97b7f7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

other/lfu_cache.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ def __init__(self, key: T | None, val: U | None):
2424
self.prev: DoubleLinkedListNode[T, U] | None = None
2525

2626
def __repr__(self) -> str:
27-
return f"Node: key: {self.key}, val: {self.val}, freq: {self.freq}, "\
28-
f"has next: {self.next is not None}, has prev: {self.prev is not None}"
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+
)
2931

3032

3133
class DoubleLinkedList(Generic[T, U]):

0 commit comments

Comments
 (0)