mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
fourth iteration
This commit is contained in:
27
django-stubs/core/cache/backends/filebased.pyi
vendored
27
django-stubs/core/cache/backends/filebased.pyi
vendored
@@ -1,9 +1,6 @@
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
|
||||
from typing import Any, Callable, Dict, Optional, Union
|
||||
|
||||
from django.core.cache.backends.base import BaseCache
|
||||
from django.db.models.base import Model
|
||||
from django.db.models.query import QuerySet
|
||||
from django.http.response import HttpResponse
|
||||
|
||||
|
||||
class FileBasedCache(BaseCache):
|
||||
@@ -38,27 +35,7 @@ class FileBasedCache(BaseCache):
|
||||
def set(
|
||||
self,
|
||||
key: str,
|
||||
value: Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Callable,
|
||||
Dict[str, int],
|
||||
List[int],
|
||||
Tuple[int, int, int, int],
|
||||
Type[Any],
|
||||
int,
|
||||
str,
|
||||
],
|
||||
],
|
||||
List[Any],
|
||||
bytes,
|
||||
Model,
|
||||
QuerySet,
|
||||
HttpResponse,
|
||||
int,
|
||||
str,
|
||||
],
|
||||
value: Any,
|
||||
timeout: Any = ...,
|
||||
version: Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user