Skip to content

Commit

Permalink
fix: remove deprecated ETagResponseMixin (#21773)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Oct 12, 2022
1 parent 8f74e46 commit 75e6a04
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 75e6a04

Please sign in to comment.