Skip to content

Commit b4126fa

Browse files
rvanlaaradamchainzsobolevnpre-commit-ci[bot]
authored
Add memcache_key_warnings() (#1562)
* Stub memcache_key_warnings Stubs the function memcache_key_warnings * Remove from todo * Apply suggestions from code review Co-authored-by: Nikita Sobolev <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: Adam Johnson <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fcd4fa0 commit b4126fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

django-stubs/core/cache/backends/base.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Callable, Iterable
1+
from collections.abc import Callable, Iterable, Iterator
22
from typing import Any
33

44
from django.core.exceptions import ImproperlyConfigured
@@ -65,3 +65,5 @@ class BaseCache:
6565
async def adecr_version(self, key: Any, delta: int = ..., version: int | None = ...) -> int: ...
6666
def close(self, **kwargs: Any) -> None: ...
6767
async def aclose(self, **kwargs: Any) -> None: ...
68+
69+
def memcache_key_warnings(key: str) -> Iterator[str]: ...

scripts/stubtest/allowlist_todo.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@ django.contrib.staticfiles.management.commands.collectstatic
792792
django.contrib.staticfiles.management.commands.findstatic.Command.handle_label
793793
django.contrib.staticfiles.storage
794794
django.core.cache.InvalidCacheKey
795-
django.core.cache.backends.base.memcache_key_warnings
796795
django.core.cache.backends.db.DatabaseCache.pickle_protocol
797796
django.core.cache.backends.filebased.FileBasedCache.pickle_protocol
798797
django.core.cache.backends.locmem.LocMemCache.pickle_protocol

0 commit comments

Comments
 (0)