From a76cdb6ec96f50398e04a5562922d22a56612437 Mon Sep 17 00:00:00 2001 From: Mahesh Vashishtha Date: Thu, 30 Jan 2025 12:39:32 -0800 Subject: [PATCH] TEST-#7431: Fix formatting for isort 6 and black 25 (#7432) Signed-off-by: sfc-gh-mvashishtha --- modin/core/dataframe/pandas/metadata/dtypes.py | 2 +- modin/pandas/io.py | 2 +- modin/tests/pandas/test_io.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modin/core/dataframe/pandas/metadata/dtypes.py b/modin/core/dataframe/pandas/metadata/dtypes.py index 9220a2dace4..327d64344f0 100644 --- a/modin/core/dataframe/pandas/metadata/dtypes.py +++ b/modin/core/dataframe/pandas/metadata/dtypes.py @@ -1191,7 +1191,7 @@ def _materialize_categories(self): def get_categories_dtype( - cdt: Union[LazyProxyCategoricalDtype, pandas.CategoricalDtype] + cdt: Union[LazyProxyCategoricalDtype, pandas.CategoricalDtype], ) -> DtypeObj: """ Get the categories dtype. diff --git a/modin/pandas/io.py b/modin/pandas/io.py index ecd539358db..c43ee4368c8 100644 --- a/modin/pandas/io.py +++ b/modin/pandas/io.py @@ -1133,7 +1133,7 @@ def to_pandas(modin_obj: SupportsPublicToPandas) -> DataFrame | Series: def to_numpy( - modin_obj: Union[SupportsPrivateToNumPy, SupportsPublicToNumPy] + modin_obj: Union[SupportsPrivateToNumPy, SupportsPublicToNumPy], ) -> np.ndarray: """ Convert a Modin object to a NumPy array. diff --git a/modin/tests/pandas/test_io.py b/modin/tests/pandas/test_io.py index bade22ef8ec..94bf7418a4f 100644 --- a/modin/tests/pandas/test_io.py +++ b/modin/tests/pandas/test_io.py @@ -69,7 +69,9 @@ parse_dates_values_by_id, ) from .utils import test_data as utils_test_data -from .utils import time_parsing_csv_path +from .utils import ( + time_parsing_csv_path, +) if StorageFormat.get() == "Pandas": import modin.pandas as pd