From a2254f2674676155b7e98a5efafb5f73702566f9 Mon Sep 17 00:00:00 2001 From: Kevin Wallace Date: Thu, 17 Nov 2022 21:35:04 -0800 Subject: [PATCH] Add return type to hmac_sha256 --- app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 14bb913..0dc868a 100644 --- a/app/config.py +++ b/app/config.py @@ -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)