mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
Fix cache arg type for django.utils.cache.learn_cache_key() (#316)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from typing import Any, Optional, Tuple
|
||||
|
||||
from django.core.cache.backends.base import BaseCache
|
||||
from django.core.cache.backends.locmem import LocMemCache
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import HttpResponse, HttpResponseBase
|
||||
|
||||
@@ -28,5 +27,5 @@ def learn_cache_key(
|
||||
response: HttpResponse,
|
||||
cache_timeout: Optional[float] = ...,
|
||||
key_prefix: Optional[str] = ...,
|
||||
cache: Optional[LocMemCache] = ...,
|
||||
cache: Optional[BaseCache] = ...,
|
||||
) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user