From d7943ac33da8e36ae40e9a801bb54e93d8997c7c Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:29:28 -0400 Subject: [PATCH] Inherit from MutableMapping --- src/lru/__init__.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lru/__init__.pyi b/src/lru/__init__.pyi index d284112..ead9775 100644 --- a/src/lru/__init__.pyi +++ b/src/lru/__init__.pyi @@ -4,6 +4,7 @@ from typing import ( Generic, Hashable, Iterable, + MutableMapping, TypeVar, overload, Protocol @@ -20,7 +21,7 @@ class __SupportsKeysAndGetItem(Protocol[_KT, _VT_co]): def __getitem__(self, __key: _KT) -> _VT_co: ... -class LRU(Generic[_KT, _VT]): +class LRU(Generic[_KT, _VT], MutableMapping[_KT, _VT]): @overload def __init__(self, size: int) -> None: ... @overload