Skip to content

Commit

Permalink
fix: remove deprecated ETagResponseMixin (#21773)
Browse files Browse the repository at this point in the history
(cherry picked from commit 75e6a04)
  • Loading branch information
eschutho committed Oct 18, 2022
1 parent b1c9adb commit f7e664b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f7e664b

Please sign in to comment.