File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2770,16 +2770,12 @@ def _generate_range(
2770
2770
else :
2771
2771
end = None
2772
2772
2773
+ # GH #56134 fix bug in end of interval
2773
2774
if start and not offset .is_on_offset (start ):
2774
2775
# Incompatible types in assignment (expression has type "datetime",
2775
2776
# variable has type "Optional[Timestamp]")
2776
2777
start = offset .rollforward (start ) # type: ignore[assignment]
2777
2778
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
-
2783
2779
# Unsupported operand types for < ("Timestamp" and "None")
2784
2780
if periods is None and end < start and offset .n >= 0 : # type: ignore[operator]
2785
2781
end = None
You can’t perform that action at this time.
0 commit comments