Skip to content

Commit 460afc2

Browse files
committed
pandas-dev#56147 removed offset and year end interaction
1 parent 5955ca6 commit 460afc2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/arrays/datetimes.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -2770,16 +2770,12 @@ def _generate_range(
27702770
else:
27712771
end = None
27722772

2773+
# GH #56134 fix bug in end of interval
27732774
if start and not offset.is_on_offset(start):
27742775
# Incompatible types in assignment (expression has type "datetime",
27752776
# variable has type "Optional[Timestamp]")
27762777
start = offset.rollforward(start) # type: ignore[assignment]
27772778

2778-
elif end and not offset.is_on_offset(end):
2779-
# Incompatible types in assignment (expression has type "datetime",
2780-
# variable has type "Optional[Timestamp]")
2781-
end = offset.rollback(end) # type: ignore[assignment]
2782-
27832779
# Unsupported operand types for < ("Timestamp" and "None")
27842780
if periods is None and end < start and offset.n >= 0: # type: ignore[operator]
27852781
end = None

0 commit comments

Comments
 (0)