diff --git a/other/lru_cache.py b/other/lru_cache.py index 98051f89db4f..2c25a0855632 100644 --- a/other/lru_cache.py +++ b/other/lru_cache.py @@ -21,9 +21,7 @@ def __init__(self, key: T | None, val: U | None): self.prev: DoubleLinkedListNode[T, U] | None = None def __repr__(self) -> str: - return "Node: key: {}, val: {}, has next: {}, has prev: {}".format( - self.key, self.val, self.next is not None, self.prev is not None - ) + return f"Node: key: {self.key}, val: {self.val}, has next: {self.next is not None}, has prev: {self.prev is not None}" class DoubleLinkedList(Generic[T, U]):