Skip to content

Commit 905bcff

Browse files
committed
mypy, doc fixup
1 parent 270b859 commit 905bcff

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ with a :class:`Day` ``freq`` no longer preserves that ``freq`` attribute.
335335
- Adding or subtracing a :class:`Day` with a :class:`Timedelta` is no longer supported.
336336
- Adding or subtracting a :class:`Day` offset to a :class:`Timestamp` or datetime-like may lead to an ambiguous or non-existent time, which will raise.
337337

338+
338339
.. _whatsnew_300.api_breaking.deps:
339340

340341
Increased minimum version for Python

pandas/core/resample.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,13 @@ def _get_timestamp_range_edges(
26502650
origin = origin.tz_localize(None)
26512651

26522652
first, last = _adjust_dates_anchored(
2653-
first, last, freq, closed=closed, origin=origin, offset=offset, unit=unit
2653+
first,
2654+
last,
2655+
cast("Day | Tick", freq),
2656+
closed=closed,
2657+
origin=origin,
2658+
offset=offset,
2659+
unit=unit,
26542660
)
26552661
if isinstance(freq, Day):
26562662
first = first.tz_localize(index_tz)

0 commit comments

Comments
 (0)