Fixed the return type hint of the get_logged_in_user function.

This commit is contained in:
依瑪貓 2022-11-30 08:30:42 +08:00
parent 9d0d0b2686
commit 3709cb4d66

View File

@ -110,7 +110,7 @@ class DigestAuth:
class NoLogInException(Exception): class NoLogInException(Exception):
"""The exception thrown when the user is not authorized.""" """The exception thrown when the user is not authorized."""
def get_logged_in_user() -> t.Optional[t.Any]: def get_logged_in_user() -> t.Any:
"""Returns the currently logged-in user. """Returns the currently logged-in user.
:return: The currently logged-in user. :return: The currently logged-in user.