Skip to content

Commit 68aef60

Browse files
committed
fix type hint
1 parent c6846cb commit 68aef60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyter_server/auth/identity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import binascii
1212
import datetime
13-
import hashlib
13+
import hmac
1414
import json
1515
import os
1616
import re
@@ -611,7 +611,7 @@ def logout_available(self):
611611
"""Whether a LogoutHandler is needed."""
612612
return True
613613

614-
def cookie_secret_hook(self, h: hashlib._Hash) -> hashlib._Hash:
614+
def cookie_secret_hook(self, h: hmac.HMAC) -> hmac.HMAC:
615615
"""Update cookie secret input
616616
617617
Subclasses may call `h.update()` with any credentials that,
@@ -753,7 +753,7 @@ def validate_security(
753753
self.log.critical(_i18n("\t$ python -m jupyter_server.auth password"))
754754
sys.exit(1)
755755

756-
def cookie_secret_hook(self, h: hashlib._Hash) -> hashlib._Hash:
756+
def cookie_secret_hook(self, h: hmac.HMAC) -> hmac.HMAC:
757757
"""Include password in cookie secret.
758758
759759
This makes it so changing the password invalidates cookies.

0 commit comments

Comments
 (0)