Skip to content

Commit 98dafdb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 202b587 commit 98dafdb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

doc/source/whatsnew/v2.3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ Categorical
121121

122122
Datetimelike
123123
^^^^^^^^^^^^
124-
- Bug in :func:`date_range` where the last valid timestamp would sometimes not be produced (:issue:`56134`)
125124
- Bug in :func:`date_range` where a timestamp out of the valid range would be produced with a negative ``freq`` parameter (:issue:`56147`)
125+
- Bug in :func:`date_range` where the last valid timestamp would sometimes not be produced (:issue:`56134`)
126126
-
127127

128128
Timedelta

pandas/tests/indexes/datetimes/test_date_range.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,9 +1727,9 @@ def test_date_range_partial_day_year_end(self, unit):
17271727
["2021-12-31 00:00:01", "2022-12-31 00:00:01"],
17281728
dtype=f"M8[{unit}]",
17291729
freq="YE",
1730-
)
1730+
)
17311731
tm.assert_index_equal(rng, exp)
1732-
1732+
17331733
def test_date_range_negative_freq_year_end_inbounds(self, unit):
17341734
# GH#56147
17351735
rng = date_range(
@@ -1744,6 +1744,3 @@ def test_date_range_negative_freq_year_end_inbounds(self, unit):
17441744
freq="-1YE",
17451745
)
17461746
tm.assert_index_equal(rng, exp)
1747-
1748-
1749-

0 commit comments

Comments
 (0)