requests: types for auth username and password (#9389)

This commit is contained in:
Mauricio Villegas
2022-12-20 23:34:40 +01:00
committed by GitHub
parent 352f496d69
commit 1b50eb09df

View File

@@ -15,23 +15,23 @@ class AuthBase:
def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ...
class HTTPBasicAuth(AuthBase):
username: Any
password: Any
def __init__(self, username, password) -> None: ...
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: Any
password: Any
username: bytes | str
password: bytes | str
last_nonce: Any
nonce_count: Any
chal: Any
pos: Any
num_401_calls: Any
def __init__(self, username, password) -> None: ...
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): ...