Fix various type hints

This commit is contained in:
2026-04-05 08:27:40 +08:00
parent 29dfc6c5a4
commit 674b0de3b2
36 changed files with 157 additions and 121 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
# The Mia! Accounting Demonstration Website.
# Author: imacat@mail.imacat.idv.tw (imacat), 2023/1/27
# Copyright (c) 2023 imacat.
# Copyright (c) 2023-2026 imacat.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ def show_login_form() -> str | Response:
@bp.post("login", endpoint="login")
def login() -> redirect:
def login() -> Response:
"""Logs in the user.
:return: The redirection to the home page.
@@ -72,7 +72,7 @@ def login() -> redirect:
@bp.post("logout", endpoint="logout")
def logout() -> redirect:
def logout() -> Response:
"""Logs out the user.
:return: The redirection to the home page.