From fc4a02c0c9bad09bc048df115998f576d9124f43 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 7 Apr 2025 18:37:44 +0200 Subject: [PATCH] Add some missing type hints --- vdirsyncer/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdirsyncer/http.py b/vdirsyncer/http.py index 4d4644e..108ef86 100644 --- a/vdirsyncer/http.py +++ b/vdirsyncer/http.py @@ -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(