From 1d57c568ff03d6ff8dc584d801d02982d6d05d97 Mon Sep 17 00:00:00 2001 From: jrmylow Date: Sat, 25 Nov 2023 08:46:14 +1100 Subject: [PATCH] reformatted with black --- pandas/core/arrays/datetimes.py | 2 +- pandas/tests/indexes/datetimes/test_date_range.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 3b678f2eabfaf..36a73cccab6e4 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -2761,7 +2761,7 @@ def _generate_range( if offset.n >= 0: start = offset.rollforward(start) # type: ignore[assignment] else: - start = offset.rollback(start) # type: ignore[assignment] + start = offset.rollback(start) # type: ignore[assignment] # Unsupported operand types for < ("Timestamp" and "None") if periods is None and end < start and offset.n >= 0: # type: ignore[operator] diff --git a/pandas/tests/indexes/datetimes/test_date_range.py b/pandas/tests/indexes/datetimes/test_date_range.py index 090384bd48292..c3404bb5b9db6 100644 --- a/pandas/tests/indexes/datetimes/test_date_range.py +++ b/pandas/tests/indexes/datetimes/test_date_range.py @@ -1536,8 +1536,8 @@ def test_date_range_year_end(self, unit): def test_date_range_partial_day_year_end(self, unit): # GH#56134 rng = date_range( - start = "2021-12-31 00:00:01", - end = "2023-10-31 00:00:00", + start="2021-12-31 00:00:01", + end="2023-10-31 00:00:00", freq="YE", unit=unit, ) @@ -1560,8 +1560,8 @@ def test_date_range_negative_freq_year_end(self, unit): def test_date_range_negative_freq_year_end_inbounds(self, unit): # GH#56147 rng = date_range( - start = "2023-10-31 00:00:00", - end = "2021-10-31 00:00:00", + start="2023-10-31 00:00:00", + end="2021-10-31 00:00:00", freq="-1YE", unit=unit, ) @@ -1570,7 +1570,7 @@ def test_date_range_negative_freq_year_end_inbounds(self, unit): dtype=f"M8[{unit}]", freq="-1YE", ) - tm.assert_index_equal(rng, exp) + tm.assert_index_equal(rng, exp) def test_date_range_business_year_end_year(self, unit): # see GH#9313