Skip to content

feat: show first and last period in PeriodRange str#191

Merged
knutdrand merged 1 commit intomasterfrom
feat/period-range-str
Feb 6, 2026
Merged

feat: show first and last period in PeriodRange str#191
knutdrand merged 1 commit intomasterfrom
feat/period-range-str

Conversation

@knutdrand
Copy link
Collaborator

Summary

  • Add __str__ to PeriodRange that shows only the first and last period (e.g. PeriodRange(Month(2020-1)..Month(2021-2))) instead of raw timestamps and time delta
  • __repr__ is unchanged for debugging

Test plan

  • Added test_period_range_str verifying the new format
  • All 40 tests in test_dateutil_wrapper.py pass

@knutdrand knutdrand merged commit b277a54 into master Feb 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments