aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-26 11:30:15 -0500
committerFrederick Muriuki Muriithi2024-09-26 11:30:15 -0500
commita4a241eb15ec0a8338c12660502ab4560240e70d (patch)
tree449542ff3dc9e2c60333c6df7f71d7ce268e4f5f
parent8e758d67de9f5047a33c7c9266ac058856edcfc7 (diff)
downloadgn-auth-a4a241eb15ec0a8338c12660502ab4560240e70d.tar.gz
Add type annotation to variable.
-rw-r--r--gn_auth/auth/authorisation/resources/request_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/request_utils.py b/gn_auth/auth/authorisation/resources/request_utils.py
index 5fe6a29..ade779e 100644
--- a/gn_auth/auth/authorisation/resources/request_utils.py
+++ b/gn_auth/auth/authorisation/resources/request_utils.py
@@ -10,7 +10,7 @@ def check_form(form, *fields) -> Either:
return errors + (f"Missing `{field}` value.",)
return errors
- errors = reduce(__check_field__, fields, tuple())
+ errors: tuple[str, ...] = reduce(__check_field__, fields, tuple())
if len(errors) > 0:
return Left({
"error": "Invalid request data!",