-
Notifications
You must be signed in to change notification settings - Fork 7k
[doc] fix invalid syntax in label_selector #58352
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
Conversation
Signed-off-by: Daraan <github.blurry@9ox.net>
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.
Code Review
This pull request correctly fixes invalid Python syntax in the documentation examples for bundle_label_selector and bundles within ray.util.placement_group. The original examples incorrectly attempted to multiply a dictionary by an integer, which would raise a TypeError. The provided fix changes this to multiply a list containing the dictionary, which is the correct idiom for creating a list with repeated elements. The changes are accurate and make the documentation examples correct and runnable.
edoakes
left a comment
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.
Thanks @Daraan!
The current examples describe that label bundles are written as:
`[{"ray.io/accelerator-type": "H100"}* 2]`, i.e. a dict * integer.
This is wrong it has to be the list that is multiplied.
This PR fixes this.
Signed-off-by: Daraan <github.blurry@9ox.net>
The current examples describe that label bundles are written as:
`[{"ray.io/accelerator-type": "H100"}* 2]`, i.e. a dict * integer.
This is wrong it has to be the list that is multiplied.
This PR fixes this.
Signed-off-by: Daraan <github.blurry@9ox.net>
The current examples describe that label bundles are written as:
`[{"ray.io/accelerator-type": "H100"}* 2]`, i.e. a dict * integer.
This is wrong it has to be the list that is multiplied.
This PR fixes this.
Signed-off-by: Daraan <github.blurry@9ox.net>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
The current examples describe that label bundles are written as:
`[{"ray.io/accelerator-type": "H100"}* 2]`, i.e. a dict * integer.
This is wrong it has to be the list that is multiplied.
This PR fixes this.
Signed-off-by: Daraan <github.blurry@9ox.net>
The current examples describe that label bundles are written as:
[{"ray.io/accelerator-type": "H100"}* 2], i.e. a dict * integer.This is wrong it has to be the list that is multiplied.
This PR fixes this.