From e508457876b3350e0ca5a590ea40d264f6c1375f Mon Sep 17 00:00:00 2001 From: David Aaron Suddjian Date: Tue, 8 Feb 2022 18:28:56 -0800 Subject: [PATCH] type annotation --- superset/security/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/security/manager.py b/superset/security/manager.py index 8c95482f946da..d9206dfe4d374 100644 --- a/superset/security/manager.py +++ b/superset/security/manager.py @@ -239,7 +239,7 @@ def create_login_manager(self, app: Flask) -> LoginManager: lm.request_loader(self.request_loader) return lm - def request_loader(self, request: Request): + def request_loader(self, request: Request) -> Optional[User]: # pylint: disable=import-outside-toplevel from superset.extensions import feature_flag_manager