Skip to content

Commit 0d18623

Browse files
committed
Stub memcache_key_warnings
Stubs the function memcache_key_warnings
1 parent 91dc6d3 commit 0d18623

File tree

1 file changed

+3
-1
lines changed
  • django-stubs/core/cache/backends

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections.abc import Callable, Iterable
2-
from typing import Any
2+
from typing import Any, Generator
33

44
from django.core.exceptions import ImproperlyConfigured
55

@@ -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) -> Generator[str, None, None]: ...

0 commit comments

Comments
 (0)