mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
from typing import Any, List, TYPE_CHECKING
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
@@ -29,7 +29,7 @@ if TYPE_CHECKING:
|
||||
def left_join_df(
|
||||
left_df: pd.DataFrame,
|
||||
right_df: pd.DataFrame,
|
||||
join_keys: List[str],
|
||||
join_keys: list[str],
|
||||
) -> pd.DataFrame:
|
||||
df = left_df.set_index(join_keys).join(right_df.set_index(join_keys))
|
||||
df.reset_index(inplace=True)
|
||||
|
||||
Reference in New Issue
Block a user