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 collections.abc import Callable, ItemsView, Iterator, KeysView, MutableMapping, ValuesView
|
||||||
from typing import TypeVar
|
from typing import TypeVar
|
||||||
|
|
||||||
sentinel = object()
|
|
||||||
K = TypeVar("K")
|
K = TypeVar("K")
|
||||||
V = TypeVar("V")
|
V = TypeVar("V")
|
||||||
|
|
||||||
|
|
||||||
class LRUCache(MutableMapping[K, V]):
|
class LRUCache(MutableMapping[K, V]):
|
||||||
"""
|
"""
|
||||||
Mapping which maintains a maximum size by dropping the least recently used value.
|
Mapping which maintains a maximum size by removing the least recently used value.
|
||||||
Items are passed to dispose before being removed and replacing an item without
|
Items are passed to dispose before being removed and setting an item which is
|
||||||
removing it first is forbidden.
|
already in the cache has to be done using the replace method.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_cache: OrderedDict[K, V]
|
_cache: OrderedDict[K, V]
|
||||||
|
|
Loading…
Reference in a new issue