From a4a241eb15ec0a8338c12660502ab4560240e70d Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 26 Sep 2024 11:30:15 -0500 Subject: Add type annotation to variable. --- gn_auth/auth/authorisation/resources/request_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth') 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!", -- cgit v1.2.3