Skip to content

Commit d7943ac

Browse files
Inherit from MutableMapping
1 parent 6243917 commit d7943ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lru/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from typing import (
44
Generic,
55
Hashable,
66
Iterable,
7+
MutableMapping,
78
TypeVar,
89
overload,
910
Protocol
@@ -20,7 +21,7 @@ class __SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
2021
def __getitem__(self, __key: _KT) -> _VT_co: ...
2122

2223

23-
class LRU(Generic[_KT, _VT]):
24+
class LRU(Generic[_KT, _VT], MutableMapping[_KT, _VT]):
2425
@overload
2526
def __init__(self, size: int) -> None: ...
2627
@overload

0 commit comments

Comments
 (0)