diff --git a/superset/utils/cache.py b/superset/utils/cache.py index cdbe34bd72..442690b26c 100644 --- a/superset/utils/cache.py +++ b/superset/utils/cache.py @@ -25,7 +25,7 @@ from typing import Any, Callable, Dict, Optional, TYPE_CHECKING, Union from flask import current_app as app, request from flask_caching import Cache from flask_caching.backends import NullCache -from werkzeug.wrappers.etag import ETagResponseMixin +from werkzeug.wrappers import Response from superset import db from superset.extensions import cache_manager @@ -175,7 +175,7 @@ def etag_cache( def decorator(f: Callable[..., Any]) -> Callable[..., Any]: @wraps(f) - def wrapper(*args: Any, **kwargs: Any) -> ETagResponseMixin: + def wrapper(*args: Any, **kwargs: Any) -> Response: # Check if the user can access the resource if raise_for_access: try: