diff --git a/superset/reports/notifications/email.py b/superset/reports/notifications/email.py index bdd8ef6e5793b..42ee9b4663425 100644 --- a/superset/reports/notifications/email.py +++ b/superset/reports/notifications/email.py @@ -23,7 +23,6 @@ from typing import Any, Dict, Optional import bleach - from flask_babel import gettext as __ from superset import app diff --git a/tests/unit_tests/notifications/email_tests.py b/tests/unit_tests/notifications/email_tests.py index 2b98905933281..9bc8b8090f3da 100644 --- a/tests/unit_tests/notifications/email_tests.py +++ b/tests/unit_tests/notifications/email_tests.py @@ -15,9 +15,10 @@ # specific language governing permissions and limitations # under the License. import pandas as pd +from flask.ctx import AppContext -def test_render_description_with_html(app_context): +def test_render_description_with_html(app_context: AppContext) -> None: # `superset.models.helpers`, a dependency of following imports, # requires app context from superset.reports.models import ReportRecipients, ReportRecipientType