From e0062fa66ce6b25fa06dee1f447d3ed0651031ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 04:11:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pandas/tests/dtypes/test_dtypes.py | 1 + pandas/tests/extension/test_arrow.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py index 319c28fa360d6..b7e37ff270e60 100644 --- a/pandas/tests/dtypes/test_dtypes.py +++ b/pandas/tests/dtypes/test_dtypes.py @@ -1103,6 +1103,7 @@ def test_update_dtype_errors(self, bad_dtype): with pytest.raises(ValueError, match=msg): dtype.update_dtype(bad_dtype) + @pytest.mark.parametrize( "dtype", [CategoricalDtype, IntervalDtype, DatetimeTZDtype, PeriodDtype] ) diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 6e968d052d1c8..00016926340f2 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -50,8 +50,8 @@ ) import pandas as pd -import pandas._testing as tm from pandas import Series +import pandas._testing as tm from pandas.api.extensions import no_default from pandas.api.types import ( is_bool_dtype, @@ -3514,11 +3514,11 @@ def test_map_numeric_na_action(): def test_pyarrow_timestamp_tz_preserved(tz): s = Series( pd.to_datetime(range(5), unit="h", utc=True).tz_convert(tz), - dtype=f"timestamp[ns, tz={tz}][pyarrow]" + dtype=f"timestamp[ns, tz={tz}][pyarrow]", ) result = s.convert_dtypes(dtype_backend="pyarrow") assert result.dtype == s.dtype, f"Expected {s.dtype}, got {result.dtype}" assert str(result.iloc[0].tzinfo) == str(s.iloc[0].tzinfo) - tm.assert_series_equal(result, s) \ No newline at end of file + tm.assert_series_equal(result, s)