diff --git a/third_party/2/werkzeug/wrappers.pyi b/third_party/2/werkzeug/wrappers.pyi index 7924bcbf8..982650c62 100644 --- a/third_party/2/werkzeug/wrappers.pyi +++ b/third_party/2/werkzeug/wrappers.pyi @@ -2,78 +2,85 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any +from typing import ( + Any, Iterable, Mapping, Optional, Sequence, Tuple, Type, Union, +) + +from .datastructures import ( + CombinedMultiDict, EnvironHeaders, Headers, ImmutableMultiDict, + MultiDict, TypeConversionDict, +) class BaseRequest: - charset = ... # type: Any - encoding_errors = ... # type: Any - max_content_length = ... # type: Any - max_form_memory_size = ... # type: Any - parameter_storage_class = ... # type: Any - list_storage_class = ... # type: Any - dict_storage_class = ... # type: Any - form_data_parser_class = ... # type: Any - trusted_hosts = ... # type: Any + charset = ... # type: str + encoding_errors = ... # type: str + max_content_length = ... # type: Union[int, long] + max_form_memory_size = ... # type: Union[int, long] + parameter_storage_class = ... # type: Type + list_storage_class = ... # type: Type + dict_storage_class = ... # type: Type + form_data_parser_class = ... # type: Type + trusted_hosts = ... # type: Optional[Sequence[unicode]] disable_data_descriptor = ... # type: Any - environ = ... # type: Any + environ = ... # type: Mapping[str, object] shallow = ... # type: Any - def __init__(self, environ, populate_request=True, shallow=False): ... + def __init__(self, environ: Mapping[basestring, object], populate_request: bool=True, shallow: bool=False) -> None: ... @property - def url_charset(self): ... + def url_charset(self) -> str: ... @classmethod - def from_values(cls, *args, **kwargs): ... + def from_values(cls, *args, **kwargs) -> 'BaseRequest': ... @classmethod def application(cls, f): ... @property def want_form_data_parsed(self): ... def make_form_data_parser(self): ... - def close(self): ... + def close(self) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, tb): ... def stream(self): ... input_stream = ... # type: Any - def args(self): ... + args = ... # type: ImmutableMultiDict def data(self): ... - def get_data(self, cache=True, as_text=False, parse_form_data=False): ... - def form(self): ... - def values(self): ... - def files(self): ... - def cookies(self): ... - def headers(self): ... - def path(self): ... - def full_path(self): ... - def script_root(self): ... - def url(self): ... - def base_url(self): ... - def url_root(self): ... - def host_url(self): ... - def host(self): ... - query_string = ... # type: Any - method = ... # type: Any + def get_data(self, cache: bool=True, as_text: bool=False, parse_form_data: bool=False) -> str: ... + form = ... # type: ImmutableMultiDict + values = ... # type: CombinedMultiDict + files = ... # type: MultiDict + cookies = ... # type: TypeConversionDict + headers = ... # type: EnvironHeaders + path = ... # type: unicode + full_path = ... # type: unicode + script_root = ... # type: unicode + url = ... # type: unicode + base_url = ... # type: unicode + url_root = ... # type: unicode + host_url = ... # type: unicode + host = ... # type: unicode + query_string = ... # type: str + method = ... # type: str def access_route(self): ... @property - def remote_addr(self): ... - remote_user = ... # type: Any - scheme = ... # type: Any - is_xhr = ... # type: Any - is_secure = ... # type: Any - is_multithread = ... # type: Any - is_multiprocess = ... # type: Any - is_run_once = ... # type: Any + def remote_addr(self) -> str: ... + remote_user = ... # type: unicode + scheme = ... # type: str + is_xhr = ... # type: bool + is_secure = ... # type: bool + is_multithread = ... # type: bool + is_multiprocess = ... # type: bool + is_run_once = ... # type: bool class BaseResponse: - charset = ... # type: Any - default_status = ... # type: Any - default_mimetype = ... # type: Any - implicit_sequence_conversion = ... # type: Any - autocorrect_location_header = ... # type: Any - automatically_set_content_length = ... # type: Any - headers = ... # type: Any - status_code = ... # type: Any - status = ... # type: Any - direct_passthrough = ... # type: Any - response = ... # type: Any - def __init__(self, response=None, status=None, headers=None, mimetype=None, content_type=None, direct_passthrough=False): ... + charset = ... # type: str + default_status = ... # type: int + default_mimetype = ... # type: str + implicit_sequence_conversion = ... # type: bool + autocorrect_location_header = ... # type: bool + automatically_set_content_length = ... # type: bool + headers = ... # type: Headers + status_code = ... # type: int + status = ... # type: str + direct_passthrough = ... # type: bool + response = ... # type: Iterable[str] + def __init__(self, response: Union[Iterable[str], str]=None, status=Union[basestring, int], headers: Union[Headers, Mapping[basestring, basestring], Sequence[Tuple[basestring, basestring]]]=None, mimetype: basestring=None, content_type: basestring=None, direct_passthrough: bool=False) -> None: ... def call_on_close(self, func): ... @classmethod def force_type(cls, response, environ=None): ... @@ -88,10 +95,10 @@ class BaseResponse: def set_cookie(self, key, value='', max_age=None, expires=None, path='', domain=None, secure=False, httponly=False): ... def delete_cookie(self, key, path='', domain=None): ... @property - def is_streamed(self): ... + def is_streamed(self) -> bool: ... @property - def is_sequence(self): ... - def close(self): ... + def is_sequence(self) -> bool: ... + def close(self) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, tb): ... def freeze(self): ... diff --git a/third_party/3/werkzeug/wrappers.pyi b/third_party/3/werkzeug/wrappers.pyi index 9bc515154..bdcf18d5b 100644 --- a/third_party/3/werkzeug/wrappers.pyi +++ b/third_party/3/werkzeug/wrappers.pyi @@ -2,78 +2,85 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any +from typing import ( + Any, Iterable, Mapping, Optional, Sequence, Tuple, Type, Union, +) + +from .datastructures import ( + CombinedMultiDict, EnvironHeaders, Headers, ImmutableMultiDict, + MultiDict, TypeConversionDict, +) class BaseRequest: - charset = ... # type: Any - encoding_errors = ... # type: Any - max_content_length = ... # type: Any - max_form_memory_size = ... # type: Any - parameter_storage_class = ... # type: Any - list_storage_class = ... # type: Any - dict_storage_class = ... # type: Any - form_data_parser_class = ... # type: Any - trusted_hosts = ... # type: Any + charset = ... # type: str + encoding_errors = ... # type: str + max_content_length = ... # type: int + max_form_memory_size = ... # type: int + parameter_storage_class = ... # type: Type + list_storage_class = ... # type: Type + dict_storage_class = ... # type: Type + form_data_parser_class = ... # type: Type + trusted_hosts = ... # type: Optional[Sequence[str]] disable_data_descriptor = ... # type: Any - environ = ... # type: Any + environ = ... # type: Mapping[str, object] shallow = ... # type: Any - def __init__(self, environ, populate_request=True, shallow=False): ... + def __init__(self, environ: Mapping[str, object], populate_request: bool=True, shallow: bool=False) -> None: ... @property - def url_charset(self): ... + def url_charset(self) -> str: ... @classmethod - def from_values(cls, *args, **kwargs): ... + def from_values(cls, *args, **kwargs) -> 'BaseRequest': ... @classmethod def application(cls, f): ... @property def want_form_data_parsed(self): ... def make_form_data_parser(self): ... - def close(self): ... + def close(self) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, tb): ... def stream(self): ... input_stream = ... # type: Any - def args(self): ... + args = ... # type: ImmutableMultiDict def data(self): ... - def get_data(self, cache=True, as_text=False, parse_form_data=False): ... - def form(self): ... - def values(self): ... - def files(self): ... - def cookies(self): ... - def headers(self): ... - def path(self): ... - def full_path(self): ... - def script_root(self): ... - def url(self): ... - def base_url(self): ... - def url_root(self): ... - def host_url(self): ... - def host(self): ... - query_string = ... # type: Any - method = ... # type: Any + def get_data(self, cache: bool=True, as_text: bool=False, parse_form_data: bool=False) -> bytes: ... + form = ... # type: ImmutableMultiDict + values = ... # type: CombinedMultiDict + files = ... # type: MultiDict + cookies = ... # type: TypeConversionDict + headers = ... # type: EnvironHeaders + path = ... # type: str + full_path = ... # type: str + script_root = ... # type: str + url = ... # type: str + base_url = ... # type: str + url_root = ... # type: str + host_url = ... # type: str + host = ... # type: str + query_string = ... # type: bytes + method = ... # type: str def access_route(self): ... @property - def remote_addr(self): ... - remote_user = ... # type: Any - scheme = ... # type: Any - is_xhr = ... # type: Any - is_secure = ... # type: Any - is_multithread = ... # type: Any - is_multiprocess = ... # type: Any - is_run_once = ... # type: Any + def remote_addr(self) -> str: ... + remote_user = ... # type: str + scheme = ... # type: str + is_xhr = ... # type: bool + is_secure = ... # type: bool + is_multithread = ... # type: bool + is_multiprocess = ... # type: bool + is_run_once = ... # type: bool class BaseResponse: - charset = ... # type: Any - default_status = ... # type: Any - default_mimetype = ... # type: Any - implicit_sequence_conversion = ... # type: Any - autocorrect_location_header = ... # type: Any - automatically_set_content_length = ... # type: Any - headers = ... # type: Any - status_code = ... # type: Any - status = ... # type: Any - direct_passthrough = ... # type: Any - response = ... # type: Any - def __init__(self, response=None, status=None, headers=None, mimetype=None, content_type=None, direct_passthrough=False): ... + charset = ... # type: str + default_status = ... # type: int + default_mimetype = ... # type: str + implicit_sequence_conversion = ... # type: bool + autocorrect_location_header = ... # type: bool + automatically_set_content_length = ... # type: bool + headers = ... # type: Headers + status_code = ... # type: int + status = ... # type: str + direct_passthrough = ... # type: bool + response = ... # type: Iterable[bytes] + def __init__(self, response: Union[Iterable[bytes], bytes]=None, status=Union[str, int], headers: Union[Headers, Mapping[str, str], Sequence[Tuple[str, str]]]=None, mimetype: str=None, content_type: str=None, direct_passthrough: bool=False) -> None: ... def call_on_close(self, func): ... @classmethod def force_type(cls, response, environ=None): ... @@ -88,10 +95,10 @@ class BaseResponse: def set_cookie(self, key, value='', max_age=None, expires=None, path='', domain=None, secure=False, httponly=False): ... def delete_cookie(self, key, path='', domain=None): ... @property - def is_streamed(self): ... + def is_streamed(self) -> bool: ... @property - def is_sequence(self): ... - def close(self): ... + def is_sequence(self) -> bool: ... + def close(self) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, tb): ... def freeze(self, **kwargs): ...