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