Skip to content

Commit 2de134b

Browse files
committed
pandas-dev#56134 removed rollback from endpoint
1 parent a869a73 commit 2de134b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/core/arrays/datetimes.py

-5
Original file line numberDiff line numberDiff line change
@@ -2758,11 +2758,6 @@ def _generate_range(
27582758
# variable has type "Optional[Timestamp]")
27592759
start = offset.rollforward(start) # type: ignore[assignment]
27602760

2761-
elif end and not offset.is_on_offset(end):
2762-
# Incompatible types in assignment (expression has type "datetime",
2763-
# variable has type "Optional[Timestamp]")
2764-
end = offset.rollback(end) # type: ignore[assignment]
2765-
27662761
# Unsupported operand types for < ("Timestamp" and "None")
27672762
if periods is None and end < start and offset.n >= 0: # type: ignore[operator]
27682763
end = None

0 commit comments

Comments
 (0)