Skip to content

Commit 7e81551

Browse files
authored
[mypy] fix type annotations for other/least-recently-used.py (#5811)
1 parent e9882e4 commit 7e81551

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: other/least_recently_used.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sys
2-
from abc import abstractmethod
32
from collections import deque
43

54

@@ -10,7 +9,6 @@ class LRUCache:
109
key_reference_map = object() # References of the keys in cache
1110
_MAX_CAPACITY: int = 10 # Maximum capacity of cache
1211

13-
@abstractmethod
1412
def __init__(self, n: int):
1513
"""Creates an empty store and map for the keys.
1614
The LRUCache is set the size n.

0 commit comments

Comments
 (0)