FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix stale IntervalUnit docstring to match enum members by maupatel · Pull Request #5957 · SQLMesh/sqlmesh · GitHub

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

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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL