-
Notifications
You must be signed in to change notification settings - Fork 122
Make sure that VersionRange has VersionIDs rather than strings #1512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
def test_version_range_set_min_and_max_directly(self) -> None: | ||
version_range = STACVersionRange() | ||
version_range.min_version = "1.0.0-beta.1" # type:ignore | ||
version_range.max_version = "1.1.0" # type:ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mypy hates this type of coersion apparently. python/mypy#3004 although that got closed in the last few days so maybe we can delete these ignore statements someday?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, and since they're in tests I'm not too worried about adding them now.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1512 +/- ##
==========================================
- Coverage 91.47% 91.47% -0.01%
==========================================
Files 54 54
Lines 7522 7542 +20
Branches 911 915 +4
==========================================
+ Hits 6881 6899 +18
Misses 457 457
- Partials 184 186 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ... do you think this is serious enough to do an immediate bugfix release? My instinct is to wait and see if any other reports trickle in this week.
def test_version_range_set_min_and_max_directly(self) -> None: | ||
version_range = STACVersionRange() | ||
version_range.min_version = "1.0.0-beta.1" # type:ignore | ||
version_range.max_version = "1.1.0" # type:ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, and since they're in tests I'm not too worried about adding them now.
I don't have a good sense of the impact. But seems like waiting a few days should be totally fine |
Related Issue(s):
Description:
The
min_version
andmax_version
should always be coerced toSTACVersionID
objects.PR Checklist:
scripts/test
)