mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
requests: types for auth username and password (#9389)
This commit is contained in:
committed by
GitHub
parent
352f496d69
commit
1b50eb09df
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user