merge with stubgen output

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:25:20 +03:00
parent 496a6274e7
commit 4866354600
294 changed files with 10234 additions and 10842 deletions

View File

@@ -1,43 +1,46 @@
from collections import OrderedDict
from typing import (
Any,
Callable,
Dict,
List,
Optional,
Union,
)
# Stubs for django.core.cache.backends.base (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.core.exceptions import ImproperlyConfigured
from typing import Any, Optional
from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, Union
class InvalidCacheBackendError(ImproperlyConfigured): ...
class CacheKeyWarning(RuntimeWarning): ...
DEFAULT_TIMEOUT: Any
MEMCACHE_MAX_KEY_LENGTH: int
def default_key_func(key: Union[str, int], key_prefix: str, version: Union[str, int]) -> str: ...
def get_key_func(key_func: Optional[Union[str, Callable]]) -> Callable: ...
class BaseCache:
def __contains__(self, key: str) -> bool: ...
default_timeout: Any = ...
_max_entries: Any = ...
_cull_frequency: Any = ...
key_prefix: Any = ...
version: Any = ...
key_func: Any = ...
def __init__(self, params: Dict[str, Any]) -> None: ...
def close(self, **kwargs) -> None: ...
def decr(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def decr_version(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def delete_many(self, keys: List[str], version: None = ...) -> None: ...
def get_backend_timeout(self, timeout: object = ...) -> Optional[float]: ...
def get_many(self, keys: List[str], version: Optional[int] = ...) -> Dict[str, Union[str, int]]: ...
def get_or_set(
self,
key: str,
default: Optional[Union[str, int, Callable]],
timeout: object = ...,
version: Optional[int] = ...
) -> Optional[Union[str, int]]: ...
def incr(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def incr_version(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def make_key(self, key: Union[str, int], version: Optional[Union[str, int]] = ...) -> str: ...
def set_many(
self,
data: Union[Dict[str, Union[Dict[str, int], str]], OrderedDict, Dict[str, str], Dict[str, int]],
timeout: object = ...,
version: Optional[int] = ...
) -> List[Any]: ...
def validate_key(self, key: str) -> None: ...
def add(self, key: Any, value: Any, timeout: Any = ..., version: Optional[Any] = ...) -> None: ...
def get(self, key: Any, default: Optional[Any] = ..., version: Optional[Any] = ...) -> None: ...
def set(self, key: Any, value: Any, timeout: Any = ..., version: Optional[Any] = ...) -> None: ...
def touch(self, key: Any, timeout: Any = ..., version: Optional[Any] = ...) -> None: ...
def delete(self, key: Any, version: Optional[Any] = ...) -> None: ...
def get_many(self, keys: List[str], version: Optional[int] = ...) -> Dict[str, Union[str, int]]: ...
def get_or_set(self, key: str, default: Optional[Union[str, int, Callable]], timeout: object = ..., version: Optional[int] = ...) -> Optional[Union[str, int]]: ...
def has_key(self, key: Any, version: Optional[Any] = ...): ...
def incr(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def decr(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def __contains__(self, key: str) -> bool: ...
def set_many(self, data: Union[Dict[str, Union[Dict[str, int], str]], OrderedDict, Dict[str, str], Dict[str, int]], timeout: object = ..., version: Optional[int] = ...) -> List[Any]: ...
def delete_many(self, keys: List[str], version: None = ...) -> None: ...
def clear(self) -> None: ...
def validate_key(self, key: str) -> None: ...
def incr_version(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def decr_version(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
def close(self, **kwargs: Any) -> None: ...

View File

@@ -1,35 +1,38 @@
# Stubs for django.core.cache.backends.db (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.core.cache.backends.base import BaseCache
from typing import Any, Optional
from datetime import datetime
from django.db.backends.utils import CursorWrapper
from typing import (
Any,
Callable,
Dict,
Optional,
Union,
)
from typing import Any, Callable, Dict, Optional, Union
class Options:
db_table: Any = ...
app_label: str = ...
model_name: str = ...
verbose_name: str = ...
verbose_name_plural: str = ...
object_name: str = ...
abstract: bool = ...
managed: bool = ...
proxy: bool = ...
swapped: bool = ...
def __init__(self, table: str) -> None: ...
class BaseDatabaseCache:
class BaseDatabaseCache(BaseCache):
_table: Any = ...
cache_model_class: Any = ...
def __init__(self, table: str, params: Dict[str, Union[Callable, Dict[str, int], str, int]]) -> None: ...
class DatabaseCache:
def _base_set(self, mode: str, key: str, value: object, timeout: object = ...): ...
def _cull(self, db: str, cursor: CursorWrapper, now: datetime) -> None: ...
def add(
self,
key: str,
value: Union[str, bytes, Dict[str, int], int],
timeout: object = ...,
version: Optional[int] = ...
) -> bool: ...
def clear(self) -> None: ...
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
class DatabaseCache(BaseDatabaseCache):
def get(self, key: str, default: Optional[Union[str, int]] = ..., version: Optional[int] = ...) -> Any: ...
def has_key(self, key: str, version: Optional[int] = ...): ...
def set(self, key: str, value: Any, timeout: object = ..., version: Optional[int] = ...) -> None: ...
def add(self, key: str, value: Union[str, bytes, Dict[str, int], int], timeout: object = ..., version: Optional[int] = ...) -> bool: ...
def touch(self, key: str, timeout: Optional[int] = ..., version: None = ...) -> bool: ...
class Options:
def __init__(self, table: str) -> None: ...
def _base_set(self, mode: str, key: str, value: object, timeout: object = ...): ...
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
def has_key(self, key: str, version: Optional[int] = ...): ...
def _cull(self, db: str, cursor: CursorWrapper, now: datetime) -> None: ...
def clear(self) -> None: ...

View File

@@ -1,20 +1,17 @@
from typing import (
Any,
Dict,
Optional,
Union,
)
# Stubs for django.core.cache.backends.dummy (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.core.cache.backends.base import BaseCache
from typing import Any, Optional
class DummyCache:
def __init__(self, host: str, *args, **kwargs) -> None: ...
from typing import Any, Dict, Optional, Union
class DummyCache(BaseCache):
def __init__(self, host: str, *args: Any, **kwargs: Any) -> 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 set(self, key: str, value: Union[str, Dict[str, Any], int], timeout: object = ..., version: Optional[str] = ...) -> None: ...
def touch(self, key: Any, timeout: Any = ..., version: Optional[Any] = ...): ...
def delete(self, key: Any, version: Optional[Any] = ...) -> None: ...
def has_key(self, key: str, version: None = ...) -> bool: ...
def set(
self,
key: str,
value: Union[str, Dict[str, Any], int],
timeout: object = ...,
version: Optional[str] = ...
) -> None: ...
def clear(self) -> None: ...

View File

@@ -1,44 +1,28 @@
from io import (
BufferedRandom,
BufferedReader,
BufferedWriter,
)
from typing import (
Any,
Callable,
Dict,
List,
Optional,
Union,
)
# Stubs for django.core.cache.backends.filebased (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.core.cache.backends.base import BaseCache
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: ...
class FileBasedCache:
class FileBasedCache(BaseCache):
cache_suffix: str = ...
_dir: Any = ...
def __init__(self, dir: str, params: Dict[str, Union[Callable, int]]) -> None: ...
def _createdir(self) -> None: ...
def _cull(self) -> None: ...
def _delete(self, fname: str) -> None: ...
def _is_expired(self, f: BufferedReader) -> bool: ...
def _key_to_file(self, key: str, version: Optional[int] = ...) -> str: ...
def _list_cache_files(self) -> List[str]: ...
def add(
self,
key: str,
value: Union[str, bytes, int],
timeout: object = ...,
version: Optional[int] = ...
) -> bool: ...
def clear(self) -> None: ...
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
def get(
self,
key: str,
default: Optional[Union[str, int]] = ...,
version: Optional[int] = ...
) -> Optional[str]: ...
def has_key(self, key: str, version: Optional[int] = ...) -> bool: ...
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 touch(self, key: str, timeout: object = ..., version: None = ...): ...
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
def _delete(self, fname: str) -> None: ...
def has_key(self, key: str, version: Optional[int] = ...) -> bool: ...
def _cull(self) -> None: ...
def _createdir(self) -> None: ...
def _key_to_file(self, key: str, version: Optional[int] = ...) -> str: ...
def clear(self) -> None: ...
def _is_expired(self, f: BufferedReader) -> bool: ...
def _list_cache_files(self) -> List[str]: ...

View File

@@ -1,38 +1,29 @@
from typing import (
Any,
Dict,
Optional,
Union,
)
# Stubs for django.core.cache.backends.locmem (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.core.cache.backends.base import BaseCache
from typing import Any, Optional
class LocMemCache:
from typing import Any, Dict, Optional, Union
_caches: Any
_expire_info: Any
_locks: Any
class LocMemCache(BaseCache):
_cache: Any = ...
_expire_info: Any = ...
_lock: Any = ...
def __init__(self, name: str, params: Dict[str, Any]) -> None: ...
def _delete(self, key: str) -> None: ...
def _has_expired(self, key: str) -> bool: ...
def add(self, key: str, value: Union[int, str, Dict[str, str], Dict[str, int]], timeout: object = ..., version: Optional[int] = ...): ...
def get(self, key: Union[str, int], default: Optional[Union[str, int]] = ..., version: Optional[int] = ...) -> Any: ...
def _set(self, key: str, value: bytes, timeout: object = ...) -> None: ...
def add(
self,
key: str,
value: Union[int, str, Dict[str, str], Dict[str, int]],
timeout: object = ...,
version: Optional[int] = ...
): ...
def clear(self) -> None: ...
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
def get(
self,
key: Union[str, int],
default: Optional[Union[str, int]] = ...,
version: Optional[int] = ...
) -> Any: ...
def has_key(self, key: str, version: Optional[int] = ...): ...
def set(self, key: Union[str, int], value: object, timeout: object = ..., version: Optional[int] = ...) -> None: ...
def touch(self, key: str, timeout: object = ..., version: None = ...): ...
def incr(self, key: Union[str, int], delta: int = ..., version: Optional[int] = ...) -> int: ...
def set(
self,
key: Union[str, int],
value: object,
timeout: object = ...,
version: Optional[int] = ...
) -> None: ...
def touch(self, key: str, timeout: object = ..., version: None = ...): ...
def has_key(self, key: str, version: Optional[int] = ...): ...
def _has_expired(self, key: str) -> bool: ...
def _cull(self) -> None: ...
def _delete(self, key: str) -> None: ...
def delete(self, key: str, version: Optional[int] = ...) -> None: ...
def clear(self) -> None: ...

View File

@@ -1,8 +1,10 @@
from typing import (
List,
Optional,
Union,
)
# Stubs for django.core.cache.utils (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
def make_template_fragment_key(fragment_name: str, vary_on: Optional[Union[List[int], List[str]]] = ...) -> str: ...
from typing import List, Optional, Union
TEMPLATE_FRAGMENT_KEY_TEMPLATE: str
def make_template_fragment_key(fragment_name: str, vary_on: Optional[Union[List[int], List[str]]] = ...) -> str: ...