[Docs] Mock all imports for docs (#27873)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-11-01 10:02:23 +00:00
committed by GitHub
parent 2c0c7c39bd
commit 799ce45cc1
3 changed files with 49 additions and 23 deletions

View File

@@ -3,7 +3,7 @@
from collections import UserDict
from collections.abc import Callable, Hashable, Iterator, KeysView, Mapping
from types import MappingProxyType
from typing import Generic, NamedTuple, TypeVar, cast, overload
from typing import NamedTuple, TypeVar, cast, overload
import cachetools
@@ -48,7 +48,7 @@ class CacheInfo(NamedTuple):
)
class LRUCache(cachetools.LRUCache[_K, _V], Generic[_K, _V]):
class LRUCache(cachetools.LRUCache[_K, _V]):
def __init__(self, capacity: float, getsizeof: Callable[[_V], float] | None = None):
super().__init__(capacity, getsizeof)