merge with stubgen output

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

No files matched your search

@@ -1,5 +1,9 @@
# Stubs for django.contrib.messages.storage (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from django.contrib.messages.storage.base import BaseStorage
from django.http.request import HttpRequest
def default_storage(request: HttpRequest) -> BaseStorage: ...
def default_storage(request: HttpRequest) -> BaseStorage: ...
@@ -1,46 +1,30 @@
# Stubs for django.contrib.messages.storage.cookie (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import json
from django.contrib.messages.storage.base import BaseStorage
from typing import Any
from django.contrib.messages.storage.base import Message
from django.http.response import HttpResponse
from typing import (
Any,
List,
Optional,
Tuple,
Union,
)
from typing import Any, List, Optional, Tuple, Union
class MessageEncoder(json.JSONEncoder):
message_key: str = ...
def default(self, obj: Message) -> List[Union[int, str]]: ...
class CookieStorage:
def _decode(self, data: Optional[str]) -> Any: ...
def _encode(
self,
messages: Union[List[Message], List[str]],
encode_empty: bool = ...
) -> Optional[str]: ...
def _get(
self,
*args,
**kwargs
) -> Union[Tuple[None, bool], Tuple[List[Any], bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
def _hash(self, value: str) -> str: ...
def _store(
self,
messages: List[Message],
response: HttpResponse,
remove_oldest: bool = ...,
*args,
**kwargs
) -> List[Message]: ...
def _update_cookie(self, encoded_data: Optional[str], response: HttpResponse) -> None: ...
class MessageDecoder:
def decode(
self,
s: str,
**kwargs
) -> Union[List[Union[Message, str]], List[Message], List[str]]: ...
class MessageDecoder(json.JSONDecoder):
def process_messages(self, obj: Any) -> Any: ...
def decode(self, s: str, **kwargs: Any) -> Union[List[Union[Message, str]], List[Message], List[str]]: ...
class MessageEncoder:
def default(self, obj: Message) -> List[Union[int, str]]: ...
class CookieStorage(BaseStorage):
cookie_name: str = ...
max_cookie_size: int = ...
not_finished: str = ...
def _get(self, *args: Any, **kwargs: Any) -> Union[Tuple[None, bool], Tuple[List[Any], bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
def _update_cookie(self, encoded_data: Optional[str], response: HttpResponse) -> None: ...
def _store(self, messages: List[Message], response: HttpResponse, remove_oldest: bool = ..., *args: Any, **kwargs: Any) -> List[Message]: ...
def _hash(self, value: str) -> str: ...
def _encode(self, messages: Union[List[Message], List[str]], encode_empty: bool = ...) -> Optional[str]: ...
used: bool = ...
def _decode(self, data: Optional[str]) -> Any: ...
@@ -1,24 +1,17 @@
# Stubs for django.contrib.messages.storage.fallback (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.contrib.messages.storage.base import BaseStorage
from typing import Any
from django.contrib.messages.storage.base import Message
from django.http.response import HttpResponse
from typing import (
Any,
List,
Tuple,
Union,
)
class FallbackStorage:
def __init__(self, *args, **kwargs) -> None: ...
def _get(
self,
*args,
**kwargs
) -> Union[Tuple[List[Any], bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
def _store(
self,
messages: List[Message],
response: HttpResponse,
*args,
**kwargs
) -> List[Any]: ...
from typing import Any, List, Tuple, Union
class FallbackStorage(BaseStorage):
storage_classes: Any = ...
storages: Any = ...
_used_storages: Any = ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def _get(self, *args: Any, **kwargs: Any) -> Union[Tuple[List[Any], bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
def _store(self, messages: List[Message], response: HttpResponse, *args: Any, **kwargs: Any) -> List[Any]: ...
@@ -1,31 +1,18 @@
# Stubs for django.contrib.messages.storage.session (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from django.contrib.messages.storage.base import BaseStorage
from typing import Any
from django.contrib.messages.storage.base import Message
from django.http.request import HttpRequest
from django.http.response import HttpResponse
from typing import (
Any,
List,
Optional,
Tuple,
Union,
)
class SessionStorage:
def __init__(self, request: HttpRequest, *args, **kwargs) -> None: ...
def _get(
self,
*args,
**kwargs
) -> Union[Tuple[None, bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
def _store(
self,
messages: List[Message],
response: HttpResponse,
*args,
**kwargs
) -> List[Any]: ...
def deserialize_messages(
self,
data: Optional[str]
) -> Optional[Union[List[Message], List[str]]]: ...
def serialize_messages(self, messages: Union[List[Message], List[str]]) -> str: ...
from typing import Any, List, Optional, Tuple, Union
class SessionStorage(BaseStorage):
session_key: str = ...
def __init__(self, request: HttpRequest, *args: Any, **kwargs: Any) -> None: ...
def _get(self, *args: Any, **kwargs: Any) -> Union[Tuple[None, bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
def _store(self, messages: List[Message], response: HttpResponse, *args: Any, **kwargs: Any) -> List[Any]: ...
def serialize_messages(self, messages: Union[List[Message], List[str]]) -> str: ...
def deserialize_messages(self, data: Optional[str]) -> Optional[Union[List[Message], List[str]]]: ...