massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / requests / models.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/requests/models.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/requests/models.pyi
new file mode 100644 (file)
index 0000000..fff8287
--- /dev/null
@@ -0,0 +1,139 @@
+# Stubs for requests.models (Python 3)\r
+\r
+from typing import (Any, Dict, Iterator, List, MutableMapping, Optional, Text,\r
+                    Union)\r
+import datetime\r
+import types\r
+\r
+from . import hooks\r
+from . import structures\r
+from . import auth\r
+from . import cookies\r
+from .cookies import RequestsCookieJar\r
+from .packages.urllib3 import fields\r
+from .packages.urllib3 import filepost\r
+from .packages.urllib3 import util\r
+from .packages.urllib3 import exceptions as urllib3_exceptions\r
+from . import exceptions\r
+from . import utils\r
+from . import compat\r
+from . import status_codes\r
+\r
+\r
+default_hooks = hooks.default_hooks\r
+CaseInsensitiveDict = structures.CaseInsensitiveDict\r
+HTTPBasicAuth = auth.HTTPBasicAuth\r
+cookiejar_from_dict = cookies.cookiejar_from_dict\r
+get_cookie_header = cookies.get_cookie_header\r
+RequestField = fields.RequestField\r
+encode_multipart_formdata = filepost.encode_multipart_formdata\r
+parse_url = util.parse_url\r
+DecodeError = urllib3_exceptions.DecodeError\r
+ReadTimeoutError = urllib3_exceptions.ReadTimeoutError\r
+ProtocolError = urllib3_exceptions.ProtocolError\r
+LocationParseError = urllib3_exceptions.LocationParseError\r
+HTTPError = exceptions.HTTPError\r
+MissingSchema = exceptions.MissingSchema\r
+InvalidURL = exceptions.InvalidURL\r
+ChunkedEncodingError = exceptions.ChunkedEncodingError\r
+ContentDecodingError = exceptions.ContentDecodingError\r
+ConnectionError = exceptions.ConnectionError\r
+StreamConsumedError = exceptions.StreamConsumedError\r
+guess_filename = utils.guess_filename\r
+get_auth_from_url = utils.get_auth_from_url\r
+requote_uri = utils.requote_uri\r
+stream_decode_response_unicode = utils.stream_decode_response_unicode\r
+to_key_val_list = utils.to_key_val_list\r
+parse_header_links = utils.parse_header_links\r
+iter_slices = utils.iter_slices\r
+guess_json_utf = utils.guess_json_utf\r
+super_len = utils.super_len\r
+to_native_string = utils.to_native_string\r
+codes = status_codes.codes\r
+\r
+REDIRECT_STATI = ...  # type: Any\r
+DEFAULT_REDIRECT_LIMIT = ...  # type: Any\r
+CONTENT_CHUNK_SIZE = ...  # type: Any\r
+ITER_CHUNK_SIZE = ...  # type: Any\r
+json_dumps = ...  # type: Any\r
+\r
+class RequestEncodingMixin:\r
+    @property\r
+    def path_url(self): ...\r
+\r
+class RequestHooksMixin:\r
+    def register_hook(self, event, hook): ...\r
+    def deregister_hook(self, event, hook): ...\r
+\r
+class Request(RequestHooksMixin):\r
+    hooks = ...  # type: Any\r
+    method = ...  # type: Any\r
+    url = ...  # type: Any\r
+    headers = ...  # type: Any\r
+    files = ...  # type: Any\r
+    data = ...  # type: Any\r
+    json = ...  # type: Any\r
+    params = ...  # type: Any\r
+    auth = ...  # type: Any\r
+    cookies = ...  # type: Any\r
+    def __init__(self, method=..., url=..., headers=..., files=..., data=..., params=...,\r
+                 auth=..., cookies=..., hooks=..., json=...) -> None: ...\r
+    def prepare(self): ...\r
+\r
+class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):\r
+    method = ...  # type: Optional[Union[str, Text]]\r
+    url = ...  # type: Optional[Union[str, Text]]\r
+    headers = ...  # type: CaseInsensitiveDict\r
+    body = ...  # type: Optional[Union[bytes, Text]]\r
+    hooks = ...  # type: Any\r
+    def __init__(self) -> None: ...\r
+    def prepare(self, method=..., url=..., headers=..., files=..., data=..., params=...,\r
+                auth=..., cookies=..., hooks=..., json=...): ...\r
+    def copy(self): ...\r
+    def prepare_method(self, method): ...\r
+    def prepare_url(self, url, params): ...\r
+    def prepare_headers(self, headers): ...\r
+    def prepare_body(self, data, files, json=...): ...\r
+    def prepare_content_length(self, body): ...\r
+    def prepare_auth(self, auth, url=...): ...\r
+    def prepare_cookies(self, cookies): ...\r
+    def prepare_hooks(self, hooks): ...\r
+\r
+class Response:\r
+    __attrs__ = ...  # type: Any\r
+    status_code = ...  # type: int\r
+    headers = ...  # type: MutableMapping[str, str]\r
+    raw = ...  # type: Any\r
+    url = ...  # type: str\r
+    encoding = ...  # type: str\r
+    history = ...  # type: List[Response]\r
+    reason = ...  # type: str\r
+    cookies = ...  # type: RequestsCookieJar\r
+    elapsed = ...  # type: datetime.timedelta\r
+    request = ...  # type: PreparedRequest\r
+    def __init__(self) -> None: ...\r
+    def __bool__(self) -> bool: ...\r
+    def __nonzero__(self) -> bool: ...\r
+    def __iter__(self) -> Iterator[bytes]: ...\r
+    def __enter__(self) -> Response: ...\r
+    def __exit__(self, *args: Any) -> None: ...\r
+    @property\r
+    def ok(self) -> bool: ...\r
+    @property\r
+    def is_redirect(self) -> bool: ...\r
+    @property\r
+    def is_permanent_redirect(self) -> bool: ...\r
+    @property\r
+    def apparent_encoding(self) -> str: ...\r
+    def iter_content(self, chunk_size: Optional[int] = ...,\r
+                     decode_unicode: bool = ...) -> Iterator[Any]: ...\r
+    def iter_lines(self, chunk_size=..., decode_unicode=..., delimiter=...): ...\r
+    @property\r
+    def content(self) -> bytes: ...\r
+    @property\r
+    def text(self) -> str: ...\r
+    def json(self, **kwargs) -> Any: ...\r
+    @property\r
+    def links(self) -> Dict[Any, Any]: ...\r
+    def raise_for_status(self) -> None: ...\r
+    def close(self) -> None: ...\r