Skip to content

Conversation

@jinmannwong
Copy link
Collaborator

Description

  • Handle single step in derivation of monthly step ranges from input steps
  • Tighten output step range derivation to only return those compatible with input steps
  • Add tests

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

@jinmannwong jinmannwong requested a review from oiffrig November 26, 2025 09:20
f"{rstart}-{rstart + self.width}"
for rstart in range(start, end - self.width + 1, self.interval)
]
end = min((self.end or steps[-1]), steps[-1]) - self.width + 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is one too many +1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this!

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.

3 participants