initial commit

This commit is contained in:
Maxim Kurnikov
2018-07-29 18:12:23 +03:00
commit a9f215bf64
311 changed files with 13433 additions and 0 deletions

20
django/core/cache/backends/dummy.pyi vendored Normal file
View 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: ...