Skip to content

Fix stale IntervalUnit docstring to match enum members - #5957

Open
maupatel wants to merge 2 commits into
SQLMesh:mainfrom
maupatel:docs/fix-intervalunit-docstring
Open

Fix stale IntervalUnit docstring to match enum members#5957
maupatel wants to merge 2 commits into
SQLMesh:mainfrom
maupatel:docs/fix-intervalunit-docstring

Conversation

@maupatel

Copy link
Copy Markdown

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.

maupatel and others added 2 commits August 17, 2026 16:41
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.

2 participants