Skip to content

[mypy] Update others/least_recently_used.py #5813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
ignore_missing_imports = True
install_types = True
non_interactive = True
exclude = (other/least_recently_used.py)
3 changes: 3 additions & 0 deletions other/least_recently_used.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import sys
from abc import ABCMeta
from collections import deque


class LRUCache:
"""Page Replacement Algorithm, Least Recently Used (LRU) Caching."""

__metaclass__ = ABCMeta

dq_store = object() # Cache store of keys
key_reference_map = object() # References of the keys in cache
_MAX_CAPACITY: int = 10 # Maximum capacity of cache
Expand Down