Skip to content

Commit fc4a02c

Browse files
committed
Add some missing type hints
1 parent c19802e commit fc4a02c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vdirsyncer/http.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def get_auth_header(self, _method, _url):
6363
class DigestAuthMethod(AuthMethod):
6464
# make class var to 'cache' the state, which is more efficient because otherwise
6565
# each request would first require another 'initialization' request.
66-
_auth_helpers = {}
66+
_auth_helpers: dict[tuple[str, str], requests.auth.HTTPDigestAuth] = {}
6767

68-
def __init__(self, username, password):
68+
def __init__(self, username: str, password: str):
6969
super().__init__(username, password)
7070

7171
self._auth_helper = self._auth_helpers.get(

0 commit comments

Comments
 (0)