Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Fix: flake8 rule B108: Found useless Tuple expression. Consider …
…either assigning it to a variable or removing it. (ray-project#48118) ## Why are these changes needed? While running the pre-commit hook of flake8, the following error occurs if Python version is 3.12. It's because the version of flake8 is too old. ![image](https://github.com/user-attachments/assets/7c103728-2e48-42f3-8b2f-b47ab93e560b) version: - python: 3.12.7 - flake8: 7.1.1 - flake8-bugbear: 24.8.19 <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number Closes ray-project#48065 <!-- For example: "Closes ray-project#1234" --> ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [ ] Unit tests - [ ] Release tests - [ ] This PR is not tested :( Signed-off-by: win5923 <ken89@kimo.com> Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
- Loading branch information