Skip to content

[RLlib] Fix remaining docstring issues in RLlib - #66783

Merged
ArturNiederfahrenhorst merged 6 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:rllib/fix-rllib-pydoclint
Oct 7, 2026
Merged

ArturNiederfahrenhorst merged 6 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:rllib/fix-rllib-pydoclint

Conversation

@pseudo-rnd-thoughts

@pseudo-rnd-thoughts pseudo-rnd-thoughts commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Description

A follow up to #63500 as #66096 has merged rllib into python/ray which means that some of the missing pre-commit hooks now activate like pydoclint.
This PR uses Opus 5 to add docstring to all of the rllib, according to the pydoclint configurations.
I've read every line and the PR only changes docstrings and type hint so there is no breaking changes

Mark Towers added 4 commits September 11, 2026 09:32
Signed-off-by: Mark Towers <[email protected]>
# Conflicts:
#	.github/CODEOWNERS
#	doc/source/rllib/algorithm-config.rst
#	doc/source/rllib/checkpoints.rst
#	doc/source/rllib/env-to-module-connector.rst
#	doc/source/rllib/external-envs.rst
#	doc/source/rllib/hierarchical-envs.rst
#	doc/source/rllib/index.rst
#	doc/source/rllib/key-concepts.rst
#	doc/source/rllib/learner-connector.rst
#	doc/source/rllib/metrics-logger.rst
#	doc/source/rllib/multi-agent-envs.rst
#	doc/source/rllib/new-api-stack-migration-guide.rst
#	doc/source/rllib/rl-modules.rst
#	doc/source/rllib/rllib-advanced-api.rst
#	doc/source/rllib/rllib-algorithms.rst
#	doc/source/rllib/rllib-callback.rst
#	doc/source/rllib/rllib-dev.rst
#	doc/source/rllib/rllib-env.rst
#	doc/source/rllib/rllib-examples.rst
#	doc/source/rllib/rllib-fault-tolerance.rst
#	doc/source/rllib/rllib-offline.rst
#	doc/source/rllib/rllib-replay-buffers.rst
#	doc/source/rllib/scaling-guide.rst
#	pyproject.toml
#	python/ray/rllib/README.rst
#	python/ray/rllib/algorithms/appo/README.md
#	python/ray/rllib/algorithms/dqn/README.md
#	python/ray/rllib/algorithms/ppo/README.md
#	python/ray/rllib/examples/_old_api_stack/attention_net_supervised.py
#	python/ray/rllib/examples/ray_tune/custom_experiment.py
#	python/ray/rllib/examples/ray_tune/custom_progress_reporter.py
@pseudo-rnd-thoughts
pseudo-rnd-thoughts requested review from a team as code owners October 6, 2026 13:14
@pseudo-rnd-thoughts pseudo-rnd-thoughts added rllib RLlib related issues go add ONLY when ready to merge, run all tests labels Oct 6, 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 cleanup of type hints, docstrings, and parameter documentation across RLlib's algorithms, connectors, environments, and utility modules, while also clarifying deprecated arguments. Two issues were identified in the review: first, in numpy.py, the type hint TensorType is used without being imported, which will cause a runtime NameError and should be replaced with np.ndarray; second, in test_utils.py, there is a mismatch where the docstring was updated to refer to min_value while the function signature still uses min_reward.

Comment thread python/ray/rllib/utils/numpy.py Resolved
Comment thread python/ray/rllib/utils/test_utils.py Resolved

@dstrodtman dstrodtman 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.

Please ship this 🙏

Signed-off-by: Mark Towers <[email protected]>
# Conflicts:
#	python/ray/rllib/algorithms/algorithm_config.py
@ArturNiederfahrenhorst
ArturNiederfahrenhorst merged commit 49bb819 into ray-project:master Oct 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests rllib RLlib related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants