From e89ce4e32cd9d88bf5a37e4c4f20c9c04f9d2b5d Mon Sep 17 00:00:00 2001 From: Joyce Date: Thu, 11 Nov 2021 03:03:11 +0800 Subject: [PATCH] [mypy] fix type annotations for other/least-recently-used.py --- other/least_recently_used.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/other/least_recently_used.py b/other/least_recently_used.py index d0e27efc6dc8..9d6b6d7cb6a6 100644 --- a/other/least_recently_used.py +++ b/other/least_recently_used.py @@ -1,5 +1,4 @@ import sys -from abc import abstractmethod from collections import deque @@ -10,7 +9,6 @@ class LRUCache: key_reference_map = object() # References of the keys in cache _MAX_CAPACITY: int = 10 # Maximum capacity of cache - @abstractmethod def __init__(self, n: int): """Creates an empty store and map for the keys. The LRUCache is set the size n.