mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-27 00:46:43 +00:00
[mypy] fix type annotations for other/least-recently-used.py (#5811)
This commit is contained in:
parent
e9882e41ba
commit
7e81551d7b
@ -1,5 +1,4 @@
|
|||||||
import sys
|
import sys
|
||||||
from abc import abstractmethod
|
|
||||||
from collections import deque
|
from collections import deque
|
||||||
|
|
||||||
|
|
||||||
@ -10,7 +9,6 @@ class LRUCache:
|
|||||||
key_reference_map = object() # References of the keys in cache
|
key_reference_map = object() # References of the keys in cache
|
||||||
_MAX_CAPACITY: int = 10 # Maximum capacity of cache
|
_MAX_CAPACITY: int = 10 # Maximum capacity of cache
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
def __init__(self, n: int):
|
def __init__(self, n: int):
|
||||||
"""Creates an empty store and map for the keys.
|
"""Creates an empty store and map for the keys.
|
||||||
The LRUCache is set the size n.
|
The LRUCache is set the size n.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user