Skip to content

Commit 1a1cb76

Browse files
committed
Try to fix ruff
1 parent 66019e6 commit 1a1cb76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: other/lfu_cache.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ 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: {lf.freq}, "
28-
"has next: {self.next is not None}, has prev: {self.prev is not None}"
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}"
2929

3030

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

0 commit comments

Comments
 (0)