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 @@
|
||||
""" Superset utilities for pandas.DataFrame.
|
||||
"""
|
||||
import logging
|
||||
from typing import Any, Dict, List
|
||||
from typing import Any
|
||||
|
||||
import pandas as pd
|
||||
|
||||
@@ -37,7 +37,7 @@ def _convert_big_integers(val: Any) -> Any:
|
||||
return str(val) if isinstance(val, int) and abs(val) > JS_MAX_INTEGER else val
|
||||
|
||||
|
||||
def df_to_records(dframe: pd.DataFrame) -> List[Dict[str, Any]]:
|
||||
def df_to_records(dframe: pd.DataFrame) -> list[dict[str, Any]]:
|
||||
"""
|
||||
Convert a DataFrame to a set of records.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user