massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / requests / auth.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/requests/auth.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/requests/auth.pyi
new file mode 100644 (file)
index 0000000..f9fbd2f
--- /dev/null
@@ -0,0 +1,44 @@
+# Stubs for requests.auth (Python 3)\r
+\r
+from typing import Any, Text, Union\r
+from . import compat\r
+from . import cookies\r
+from . import models\r
+from . import utils\r
+from . import status_codes\r
+\r
+extract_cookies_to_jar = cookies.extract_cookies_to_jar\r
+parse_dict_header = utils.parse_dict_header\r
+to_native_string = utils.to_native_string\r
+codes = status_codes.codes\r
+\r
+CONTENT_TYPE_FORM_URLENCODED = ...  # type: Any\r
+CONTENT_TYPE_MULTI_PART = ...  # type: Any\r
+\r
+def _basic_auth_str(username: Union[bytes, Text], password: Union[bytes, Text]) -> str: ...\r
+\r
+class AuthBase:\r
+    def __call__(self, r: models.Request) -> models.Request: ...\r
+\r
+class HTTPBasicAuth(AuthBase):\r
+    username = ...  # type: Any\r
+    password = ...  # type: Any\r
+    def __init__(self, username, password) -> None: ...\r
+    def __call__(self, r): ...\r
+\r
+class HTTPProxyAuth(HTTPBasicAuth):\r
+    def __call__(self, r): ...\r
+\r
+class HTTPDigestAuth(AuthBase):\r
+    username = ...  # type: Any\r
+    password = ...  # type: Any\r
+    last_nonce = ...  # type: Any\r
+    nonce_count = ...  # type: Any\r
+    chal = ...  # type: Any\r
+    pos = ...  # type: Any\r
+    num_401_calls = ...  # type: Any\r
+    def __init__(self, username, password) -> None: ...\r
+    def build_digest_header(self, method, url): ...\r
+    def handle_redirect(self, r, **kwargs): ...\r
+    def handle_401(self, r, **kwargs): ...\r
+    def __call__(self, r): ...\r