mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
reformat with black
This commit is contained in:
24
django-stubs/core/cache/backends/filebased.pyi
vendored
24
django-stubs/core/cache/backends/filebased.pyi
vendored
@@ -7,15 +7,31 @@ from typing import Any, Optional
|
||||
|
||||
from io import BufferedRandom, BufferedReader, BufferedWriter
|
||||
from typing import Any, Callable, Dict, List, Optional, Union
|
||||
def _write_content(f: Union[BufferedRandom, BufferedWriter], expiry: float, value: object) -> None: ...
|
||||
|
||||
def _write_content(
|
||||
f: Union[BufferedRandom, BufferedWriter], expiry: float, value: object
|
||||
) -> None: ...
|
||||
|
||||
class FileBasedCache(BaseCache):
|
||||
cache_suffix: str = ...
|
||||
_dir: Any = ...
|
||||
def __init__(self, dir: str, params: Dict[str, Union[Callable, int]]) -> None: ...
|
||||
def add(self, key: str, value: Union[str, bytes, int], timeout: object = ..., version: Optional[int] = ...) -> bool: ...
|
||||
def get(self, key: str, default: Optional[Union[str, int]] = ..., version: Optional[int] = ...) -> Optional[str]: ...
|
||||
def set(self, key: str, value: Any, timeout: object = ..., version: Optional[int] = ...) -> None: ...
|
||||
def add(
|
||||
self,
|
||||
key: str,
|
||||
value: Union[str, bytes, int],
|
||||
timeout: object = ...,
|
||||
version: Optional[int] = ...,
|
||||
) -> bool: ...
|
||||
def get(
|
||||
self,
|
||||
key: str,
|
||||
default: Optional[Union[str, int]] = ...,
|
||||
version: Optional[int] = ...,
|
||||
) -> Optional[str]: ...
|
||||
def set(
|
||||
self, key: str, value: Any, timeout: object = ..., version: Optional[int] = ...
|
||||
) -> None: ...
|
||||
def touch(self, key: str, timeout: object = ..., version: None = ...): ...
|
||||
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
|
||||
def _delete(self, fname: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user