mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-17 17:35:59 +08:00
initial commit
This commit is contained in:
20
django/core/cache/backends/dummy.pyi
vendored
Normal file
20
django/core/cache/backends/dummy.pyi
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
from typing import (
|
||||
Any,
|
||||
Dict,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class DummyCache:
|
||||
def __init__(self, host: str, *args, **kwargs) -> None: ...
|
||||
def add(self, key: str, value: str, timeout: object = ..., version: None = ...) -> bool: ...
|
||||
def get(self, key: str, default: Optional[str] = ..., version: Optional[int] = ...) -> Optional[str]: ...
|
||||
def has_key(self, key: str, version: None = ...) -> bool: ...
|
||||
def set(
|
||||
self,
|
||||
key: str,
|
||||
value: Union[str, int, Dict[str, Any]],
|
||||
timeout: object = ...,
|
||||
version: Optional[str] = ...
|
||||
) -> None: ...
|
||||
Reference in New Issue
Block a user