fix: remove deprecated ETagResponseMixin (#21773)

This commit is contained in:
Elizabeth Thompson 2022-10-12 10:26:42 -07:00 committed by GitHub
parent 8f74e46d45
commit 75e6a04269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: