Skip to content

fix: Enforce range endpoints, the ISO calendar rule, and int-only counts - #197

Merged
FBruzzesi merged 2 commits into
mainfrom
fix/overflow-and-vectorized-wof
Jul 30, 2026
Merged

fix: Enforce range endpoints, the ISO calendar rule, and int-only counts#197
FBruzzesi merged 2 commits into
mainfrom
fix/overflow-and-vectorized-wof

Conversation

@FBruzzesi

Copy link
Copy Markdown
Owner

Description

  • range(..., step=2, inclusive="right") now returns the end it names instead of silently dropping both endpoints,
  • the pandas/polars format checks reject weeks their year does not have (2023-W53), so a passing check is finally a valid precondition for the conversion that already rejected it.
  • bool no longer counts as an integer in arithmetic, weeksout/daysout/range(step=)
  • from_compact validates against the compact pattern it already carried;
  • pandas builds ISO strings from isocalendar() rather than platform-dependent strftime("%G").
  • Year-bound overflow is left reporting the standard library's own error, now documented and pinned by tests rather than wrapped.

@FBruzzesi FBruzzesi added the fix label Jul 30, 2026
@FBruzzesi
FBruzzesi merged commit 7d17f66 into main Jul 30, 2026
15 checks passed
@FBruzzesi
FBruzzesi deleted the fix/overflow-and-vectorized-wof branch July 30, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant