We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a869a73 commit 2de134bCopy full SHA for 2de134b
pandas/core/arrays/datetimes.py
@@ -2758,11 +2758,6 @@ def _generate_range(
2758
# variable has type "Optional[Timestamp]")
2759
start = offset.rollforward(start) # type: ignore[assignment]
2760
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
-
2766
# Unsupported operand types for < ("Timestamp" and "None")
2767
if periods is None and end < start and offset.n >= 0: # type: ignore[operator]
2768
end = None
0 commit comments