Add return type to hmac_sha256

v2
Kevin Wallace 2022-11-17 21:35:04 -08:00 zatwierdzone przez Thomas Sileo
rodzic 2151733e4f
commit a2254f2674
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -257,5 +257,5 @@ def verify_csrf_token(
return None
def hmac_sha256():
def hmac_sha256() -> hmac.HMAC:
return hmac.new(CONFIG.secret.encode(), digestmod=hashlib.sha256)