Skip to content

Commit

Permalink
Fix cache arg type for django.utils.cache.learn_cache_key() (typeddja…
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalvino authored Feb 1, 2020
1 parent f89a0fb commit 5b3088a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django-stubs/utils/cache.pyi
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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: ...

0 comments on commit 5b3088a

Please sign in to comment.