mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-25 07:23:28 +00:00
rephrase docstring and remove unused sentinel
This commit is contained in:
parent
e683c80c75
commit
ad3c890167
1 changed files with 3 additions and 4 deletions
|
@ -2,16 +2,15 @@
|
|||
from collections.abc import Callable, ItemsView, Iterator, KeysView, MutableMapping, ValuesView
|
||||
from typing import TypeVar
|
||||
|
||||
sentinel = object()
|
||||
K = TypeVar("K")
|
||||
V = TypeVar("V")
|
||||
|
||||
|
||||
class LRUCache(MutableMapping[K, V]):
|
||||
"""
|
||||
Mapping which maintains a maximum size by dropping the least recently used value.
|
||||
Items are passed to dispose before being removed and replacing an item without
|
||||
removing it first is forbidden.
|
||||
Mapping which maintains a maximum size by removing the least recently used value.
|
||||
Items are passed to dispose before being removed and setting an item which is
|
||||
already in the cache has to be done using the replace method.
|
||||
"""
|
||||
|
||||
_cache: OrderedDict[K, V]
|
||||
|
|
Loading…
Reference in a new issue