mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
import logging
|
||||
import re
|
||||
import urllib.request
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any, Optional
|
||||
from urllib.error import URLError
|
||||
|
||||
import numpy as np
|
||||
@@ -81,7 +81,7 @@ def df_to_escaped_csv(df: pd.DataFrame, **kwargs: Any) -> Any:
|
||||
|
||||
|
||||
def get_chart_csv_data(
|
||||
chart_url: str, auth_cookies: Optional[Dict[str, str]] = None
|
||||
chart_url: str, auth_cookies: Optional[dict[str, str]] = None
|
||||
) -> Optional[bytes]:
|
||||
content = None
|
||||
if auth_cookies:
|
||||
@@ -98,7 +98,7 @@ def get_chart_csv_data(
|
||||
|
||||
|
||||
def get_chart_dataframe(
|
||||
chart_url: str, auth_cookies: Optional[Dict[str, str]] = None
|
||||
chart_url: str, auth_cookies: Optional[dict[str, str]] = None
|
||||
) -> Optional[pd.DataFrame]:
|
||||
# Disable all the unnecessary-lambda violations in this function
|
||||
# pylint: disable=unnecessary-lambda
|
||||
|
||||
Reference in New Issue
Block a user