From 0f9835f5a68e37407232e4a01c4e5ca60439b801 Mon Sep 17 00:00:00 2001 From: Trey <73353716+TreyWW@users.noreply.github.com> Date: Sun, 15 Sep 2024 15:20:10 +0100 Subject: [PATCH] fixed mypy issues Signed-off-by: Trey <73353716+TreyWW@users.noreply.github.com> --- backend/views/core/auth/login.py | 2 +- settings/helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/views/core/auth/login.py b/backend/views/core/auth/login.py index 172197ff..321b4f5b 100644 --- a/backend/views/core/auth/login.py +++ b/backend/views/core/auth/login.py @@ -64,7 +64,7 @@ def login_manual(request: HtmxAnyHttpRequest): # HTMX POST if not password: return render_error_toast_message(request, "Please enter a password") - user = authenticate(request, username=email, password=password) + user: User | None = authenticate(request, username=email, password=password) if not user: return render_error_toast_message(request, "Incorrect email or password") diff --git a/settings/helpers.py b/settings/helpers.py index de36280c..da235a5a 100644 --- a/settings/helpers.py +++ b/settings/helpers.py @@ -95,7 +95,7 @@ def send_email(data: SingleEmailInput) -> SingleEmailSuccessResponse | SingleEma if get_var("DEBUG", "").lower() == "true": print(data) - return SingleEmailSuccessResponse({}, True) + return SingleEmailSuccessResponse({}, True) # type: ignore[typeddict-item] if EMAIL_SERVICE == "SES": if not isinstance(data.destination, list):