Skip to content

[Core] Remove ray._private docstring ignores from pydoclint#63541

Merged
edoakes merged 6 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:fix-core-private-docstrings
Jun 8, 2026
Merged

[Core] Remove ray._private docstring ignores from pydoclint#63541
edoakes merged 6 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:fix-core-private-docstrings

Conversation

@pseudo-rnd-thoughts

Copy link
Copy Markdown
Member

#52974 added pydoclint to pre-commit without fixing any issues through adding all the problematic docstrings to an ignore list.
However this means that all the docstrings that do have issues / problems with them that aren't raised or fixed (which is helpful for agents understanding codebases).

This PR removes all of the ray._private ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations).

Signed-off-by: Mark Towers <mark@anyscale.com>
If you have a custom server to serve the dashboard requests,
you can set this option to override the server url.
Ex: proxy_server_url=http://historyserver:8080
**kwargs: Hidden / experimental options. Recognized keys include

@pseudo-rnd-thoughts pseudo-rnd-thoughts May 20, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike that we have to do this though is necessary for PyDocLint.
If we dislike these changes, I'm happy to add back to the ignore list but just wanted this PR to include all the possible changes

See :ref:`more info here <ray-pass-large-arg-by-value>`.

Args:
num_returns: This is only for *remote functions*. It specifies

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeat of the problems above that technically these docstrings shouldn't be allowed based on the functions actual type definition. If we want to keep the original docstring, then I'm happy to revert and add back to the ignore list

@pseudo-rnd-thoughts pseudo-rnd-thoughts added the core Issues that should be addressed in Ray Core label May 20, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request performs a comprehensive update to docstrings and type hints across multiple Ray modules to enhance code documentation and type safety. The review identified a few areas for improvement, including correcting invalid type hint syntax, resolving inconsistencies between docstrings and function signatures regarding data types, and fixing argument order mismatches in docstrings.

Comment thread python/ray/_private/external_storage.py Outdated
Comment thread python/ray/_private/accelerators/neuron.py Outdated
Comment thread python/ray/_private/accelerators/tpu.py Outdated
Comment thread python/ray/_private/runtime_env/packaging.py
Mark Towers and others added 5 commits May 20, 2026 17:18
Signed-off-by: Mark Towers <mark@anyscale.com>
Signed-off-by: Mark Towers <mark@anyscale.com>
# Conflicts:
#	ci/lint/pydoclint-baseline.txt
#	python/ray/_private/worker.py
Signed-off-by: Mark Towers <mark@anyscale.com>
@pseudo-rnd-thoughts pseudo-rnd-thoughts added the go add ONLY when ready to merge, run all tests label May 26, 2026
@edoakes edoakes merged commit 08603fa into ray-project:master Jun 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants