Skip to content

Commit

Permalink
fixed mypy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Sep 15, 2024
1 parent 52f5ccd commit 0f9835f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/views/core/auth/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion settings/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0f9835f

Please sign in to comment.