Repository navigation
[RLlib] Fix remaining docstring issues in RLlib - #66783
Merged
ArturNiederfahrenhorst merged 6 commits intoOct 7, 2026
Merged
ArturNiederfahrenhorst merged 6 commits into
ArturNiederfahrenhorst merged 6 commits into
Conversation
added 4 commits
September 11, 2026 09:32
Signed-off-by: Mark Towers <[email protected]>
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
Signed-off-by: Mark Towers <[email protected]>
Contributor
There was a problem hiding this comment.
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.
Signed-off-by: Mark Towers <[email protected]>
elliot-barn
approved these changes
Oct 7, 2026
rueian
approved these changes
Oct 7, 2026
# Conflicts: # python/ray/rllib/algorithms/algorithm_config.py
ArturNiederfahrenhorst
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A follow up to #63500 as #66096 has merged rllib into
python/raywhich 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