Skip to content

Commit

Permalink
pandas-dev#56134 removed rollback from endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmylow committed Nov 24, 2023
1 parent a869a73 commit 2de134b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pandas/core/arrays/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2758,11 +2758,6 @@ def _generate_range(
# variable has type "Optional[Timestamp]")
start = offset.rollforward(start) # type: ignore[assignment]

elif end and not offset.is_on_offset(end):
# Incompatible types in assignment (expression has type "datetime",
# variable has type "Optional[Timestamp]")
end = offset.rollback(end) # type: ignore[assignment]

# Unsupported operand types for < ("Timestamp" and "None")
if periods is None and end < start and offset.n >= 0: # type: ignore[operator]
end = None
Expand Down

0 comments on commit 2de134b

Please sign in to comment.