[RLlib] Move __grouping_doc_end__
#21321
Merged
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.
Why are these changes needed?
These changes are needed for two reasons.
__grouping_doc_end__is in the wrong placeIf you look at the part of the Ray documentation where the tag is referenced, you'll read
However, if you look at the code snippet below, you'll see the implementation of
to_base_envin addition to the implementation ofwith_agent_groups.To remove
to_base_envfrom the code snippet, we need to move__grouping_doc__end__.Black cannot format
multi_agent_env.pyFor some reason, Black errors while formatting
multi_agent_env.py. However, if we move__grouping_doc_end__up, the issue is resolved.Related issue number
Closes #21314. Also see #21311.
Checks
scripts/format.shto lint the changes in this PR.