mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
33
django-stubs-generated/core/cache/backends/dummy.pyi
vendored
Normal file
33
django-stubs-generated/core/cache/backends/dummy.pyi
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
from typing import Any, Dict, Optional, Union
|
||||
|
||||
from django.core.cache.backends.base import BaseCache
|
||||
|
||||
|
||||
class DummyCache(BaseCache):
|
||||
default_timeout: int
|
||||
key_func: Callable
|
||||
key_prefix: str
|
||||
version: int
|
||||
def __init__(self, host: str, *args: Any, **kwargs: Any) -> None: ...
|
||||
def add(
|
||||
self, key: str, value: str, timeout: Any = ..., version: None = ...
|
||||
) -> bool: ...
|
||||
def get(
|
||||
self,
|
||||
key: str,
|
||||
default: Optional[str] = ...,
|
||||
version: Optional[int] = ...,
|
||||
) -> Optional[str]: ...
|
||||
def set(
|
||||
self,
|
||||
key: str,
|
||||
value: Union[Dict[str, Any], int, str],
|
||||
timeout: Any = ...,
|
||||
version: Optional[str] = ...,
|
||||
) -> None: ...
|
||||
def touch(
|
||||
self, key: str, timeout: Any = ..., version: None = ...
|
||||
) -> bool: ...
|
||||
def delete(self, key: str, version: None = ...) -> None: ...
|
||||
def has_key(self, key: str, version: None = ...) -> bool: ...
|
||||
def clear(self) -> None: ...
|
||||
Reference in New Issue
Block a user