Skip to content

Commit b6f945d

Browse files
committed
BUG: Fix dt64[non_nano] + offset rounding
1 parent e4b91c4 commit b6f945d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@
7171

7272
from pandas.tseries.frequencies import get_period_alias
7373
from pandas.tseries.offsets import (
74-
BusinessDay,
75-
BusinessHour,
76-
CustomBusinessHour,
7774
DateOffset,
7875
Day,
7976
Tick,
@@ -839,9 +836,6 @@ def _add_offset(self, offset: BaseOffset) -> Self:
839836
hasattr(offset, "offset")
840837
and offset.offset is not None
841838
and not isinstance(offset, Tick)
842-
and type(offset) is not BusinessDay
843-
and type(offset) is not BusinessHour
844-
and type(offset) is not CustomBusinessHour
845839
):
846840
offset_td = Timedelta(offset.offset)
847841
if offset_td.value != 0:

0 commit comments

Comments
 (0)