From 4a52a71956a8d46fcb7294ac71734504bb09bcc2 Mon Sep 17 00:00:00 2001 From: S. Solomon Darnell Date: Fri, 28 Mar 2025 21:52:21 -0500 Subject: two version of R2R are here --- .../site-packages/requests-stubs/auth.pyi | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .venv/lib/python3.12/site-packages/requests-stubs/auth.pyi (limited to '.venv/lib/python3.12/site-packages/requests-stubs/auth.pyi') diff --git a/.venv/lib/python3.12/site-packages/requests-stubs/auth.pyi b/.venv/lib/python3.12/site-packages/requests-stubs/auth.pyi new file mode 100644 index 00000000..21ef4abf --- /dev/null +++ b/.venv/lib/python3.12/site-packages/requests-stubs/auth.pyi @@ -0,0 +1,39 @@ +from typing import Any + +from . import cookies, models, utils + +extract_cookies_to_jar = cookies.extract_cookies_to_jar +parse_dict_header = utils.parse_dict_header +to_native_string = utils.to_native_string + +CONTENT_TYPE_FORM_URLENCODED: Any +CONTENT_TYPE_MULTI_PART: Any + +def _basic_auth_str(username: bytes | str, password: bytes | str) -> str: ... + +class AuthBase: + def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ... + +class HTTPBasicAuth(AuthBase): + username: bytes | str + password: bytes | str + def __init__(self, username: bytes | str, password: bytes | str) -> None: ... + def __call__(self, r): ... + +class HTTPProxyAuth(HTTPBasicAuth): + def __call__(self, r): ... + +class HTTPDigestAuth(AuthBase): + username: bytes | str + password: bytes | str + last_nonce: Any + nonce_count: Any + chal: Any + pos: Any + num_401_calls: Any + def __init__(self, username: bytes | str, password: bytes | str) -> None: ... + def build_digest_header(self, method, url): ... + def handle_redirect(self, r, **kwargs): ... + def handle_401(self, r, **kwargs): ... + def __call__(self, r): ... + def init_per_thread_state(self) -> None: ... -- cgit v1.2.3