diff --git a/django-stubs/core/cache/backends/base.pyi b/django-stubs/core/cache/backends/base.pyi index 1e64f7863..42fe5efde 100644 --- a/django-stubs/core/cache/backends/base.pyi +++ b/django-stubs/core/cache/backends/base.pyi @@ -1,4 +1,4 @@ -from collections.abc import Callable, Iterable +from collections.abc import Callable, Iterable, Iterator from typing import Any from django.core.exceptions import ImproperlyConfigured @@ -65,3 +65,5 @@ class BaseCache: async def adecr_version(self, key: Any, delta: int = ..., version: int | None = ...) -> int: ... def close(self, **kwargs: Any) -> None: ... async def aclose(self, **kwargs: Any) -> None: ... + +def memcache_key_warnings(key: str) -> Iterator[str]: ... diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index da10df786..3413dfdbd 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -803,7 +803,6 @@ django.contrib.staticfiles.management.commands.collectstatic django.contrib.staticfiles.management.commands.findstatic.Command.handle_label django.contrib.staticfiles.storage django.core.cache.InvalidCacheKey -django.core.cache.backends.base.memcache_key_warnings django.core.cache.backends.db.DatabaseCache.pickle_protocol django.core.cache.backends.filebased.FileBasedCache.pickle_protocol django.core.cache.backends.locmem.LocMemCache.pickle_protocol