sebastianliebscher commented on code in PR #25948:
URL: https://github.com/apache/superset/pull/25948#discussion_r1389427641
##########
superset/views/base.py:
##########
@@ -192,15 +189,15 @@ def generate_download_headers(
def deprecated(
eol_version: str = "4.0.0",
- new_target: Optional[str] = None,
+ new_target: str | None = None,
) -> Callable[[Callable[..., FlaskResponse]], Callable[..., FlaskResponse]]:
"""
A decorator to set an API endpoint from SupersetView has deprecated.
Issues a log warning
"""
def _deprecated(f: Callable[..., FlaskResponse]) -> Callable[...,
FlaskResponse]:
- def wraps(self: "BaseSupersetView", *args: Any, **kwargs: Any) ->
FlaskResponse:
Review Comment:
this was auto-changed by pre-commit `pyupgrade`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]