From 3709cb4d660964dd2ad3e5c6c75a9892d601c17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 30 Nov 2022 08:30:42 +0800 Subject: [PATCH] Fixed the return type hint of the get_logged_in_user function. --- src/flask_digest_auth/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask_digest_auth/auth.py b/src/flask_digest_auth/auth.py index a60e89b..8b7adb5 100644 --- a/src/flask_digest_auth/auth.py +++ b/src/flask_digest_auth/auth.py @@ -110,7 +110,7 @@ class DigestAuth: class NoLogInException(Exception): """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. :return: The currently logged-in user.