-
Notifications
You must be signed in to change notification settings - Fork 356
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
docs: fix a few hyperlinks in the Python SDK reference. #8693
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8693 +/- ##
==========================================
- Coverage 51.50% 46.32% -5.19%
==========================================
Files 887 726 -161
Lines 156212 144482 -11730
Branches 2088 2088
==========================================
- Hits 80462 66932 -13530
- Misses 74256 76057 +1801
+ Partials 1494 1493 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
When false, filter for inactive users. Return all users otherwise. | ||
|
||
Returns: | ||
:class:`~determined.common.experimental.user.User`. |
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.
nit: actually returns a list of them
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.
Also, could you make please prefer determined.experimental.client.User
to determined.common.experimental.user.User
path? The former is the public path, even if Sphinx autodoc doesn't always pick the right one in the existing docs.
Tested on my system, link seems fine after changing to client.User
.
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.
One tiny requested change. Thanks for the improvements! I see anything else missing, I'll open my own PR.
Description
I’ve been asked why did the docstring for the
Experiment
class https://docs.determined.ai/latest/reference/python-sdk.html#determined.experimental.client.Experimenthas
determined.experimental.client.get_experiment()
in it, but it’s not a hyperlink.I went in and added
:func:
,:attr:
, and:meth:
annotations for it and a few classes nearby.Also added docs autogen for a bunch of missing methods in
determined.experimental.client
, and missingUser
andResourcePool
class references.Test Plan
Are things which look like methods and functions in the docs actually getting rendered as hyperlinks?
Commentary (optional)
If you find more broken or nonexisting links which are not in this PR, please make your own PR to fix them.
Checklist
docs/release-notes/
.See Release Note for details.
Ticket