Skip to content

Fix stale IntervalUnit docstring to match enum members - #5957

Merged
cmgoffena13 merged 3 commits into
SQLMesh:mainfrom
maupatel:docs/fix-intervalunit-docstring
Sep 10, 2026
Merged

Fix stale IntervalUnit docstring to match enum members#5957
cmgoffena13 merged 3 commits into
SQLMesh:mainfrom
maupatel:docs/fix-intervalunit-docstring

Conversation

@maupatel

Copy link
Copy Markdown
Contributor

The IntervalUnit class docstring in sqlmesh/core/node.py is out of date with the enum defined directly below it. It states:

IntervalUnit can be one of 5 types, YEAR, MONTH, DAY, HOUR, MINUTE.

But the enum actually has 7 members and no MINUTE: YEAR, MONTH, DAY, HOUR, HALF_HOUR, QUARTER_HOUR, FIVE_MINUTE. The sub-hour granularities were added after the docstring was written. This updates the docstring to match the code (and the public model_configuration docs, which already list all seven values).

Documentation-only; no behavior change.

@cmgoffena13
cmgoffena13 enabled auto-merge (squash) September 10, 2026 00:47
@cmgoffena13
cmgoffena13 merged commit 8d0b4de into SQLMesh:main Sep 10, 2026
32 of 33 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.

3 participants