Improve types.

This commit is contained in:
Tom Hacohen committed 2021-01-04 14:23:30 +02:00
1 parent 9bf118225d
commit 9f0430a6da
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ def get_login_user(request: Request, challenge: LoginChallengeIn) -> UserType:
raise AuthenticationFailed(code="user_not_found", detail="User not found")
def get_encryption_key(salt):
def get_encryption_key(salt: bytes):
key = nacl.hash.blake2b(settings.SECRET_KEY.encode(), encoder=nacl.encoding.RawEncoder)
return nacl.hash.blake2b(
b"",