-
Notifications
You must be signed in to change notification settings - Fork 14
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
DM-39514: Fix misleading doc for Registry.queryDatasetAssociations. #883
Conversation
I can't reproduce the
|
@@ -190,7 +190,7 @@ def direct( | |||
# This method requires tuples as values of the mapping, but JSON | |||
# readers will read things in as lists. Be kind and transparently | |||
# transform to tuples | |||
_recItems = {k: v if type(v) != list else tuple(v) for k, v in record.items()} # type: ignore | |||
_recItems = {k: v if not isinstance(v, list) else tuple(v) for k, v in record.items()} |
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.
This is being discussed on #882
The test failure is from pydantic v2.2 and there is a fix for it on #880 that you can cherry-pick |
Just to confirm, do you mean the commit titled "Move StrictInt ahead of StrictFloat in model"? |
I'm happy to take over the PR to sort out the checks -- it's a simple doc change on this PR so you shouldn't have to be fixing up code. |
ada4109
to
b643e79
Compare
b643e79
to
7cfe910
Compare
@kfindeisen I've merged my PR so a rebase should fix all the problems. |
The doc said that flattenChains is true by default, when it's false by default.
Yes, I just noticed. Rerunning |
7cfe910
to
b43f4ab
Compare
Misremembered what was actually being tested, never mind. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #883 +/- ##
=======================================
Coverage 87.71% 87.71%
=======================================
Files 274 274
Lines 36117 36117
Branches 7553 7553
=======================================
Hits 31680 31680
Misses 3264 3264
Partials 1173 1173
☔ View full report in Codecov by Sentry. |
This PR corrects the docstring for
queryDatasetAssociations
so that it is consistent with its actual (and desired) behavior. No subclass docstrings needed to be changed.