Add some missing type hints

This commit is contained in:
Hugo Osvaldo Barrera 2025-04-07 18:37:44 +02:00
parent c19802e4d8
commit fc4a02c0c9

View file

@ -63,9 +63,9 @@ class BasicAuthMethod(AuthMethod):
class DigestAuthMethod(AuthMethod):
# make class var to 'cache' the state, which is more efficient because otherwise
# each request would first require another 'initialization' request.
_auth_helpers = {}
_auth_helpers: dict[tuple[str, str], requests.auth.HTTPDigestAuth] = {}
def __init__(self, username, password):
def __init__(self, username: str, password: str):
super().__init__(username, password)
self._auth_helper = self._auth_helpers.get(