Skip to content

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rkendra committed Dec 5, 2024
1 parent 3024950 commit 0f434cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arrow/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,8 @@ def span_range(
for r in _range:
day_is_clipped = False
floor, ceil = r.span(frame, bounds=bounds, exact=exact)

# check that no dates are lost (#1185)
next = ceil.shift(microseconds=+1)
if frame == "month" and next.day < start.day:
day_is_clipped = True
Expand All @@ -710,6 +712,7 @@ def span_range(
- next.day
)
ceil = ceil.shift(days=days_to_shift)

if ceil > end:
ceil = end
if bounds[1] == ")":
Expand Down

0 comments on commit 0f434cb

Please sign in to comment.