Skip to content

Update string formatting in optuna/samplers/_grid.py#6401

Merged
not522 merged 2 commits intooptuna:masterfrom
kapishyadav:master
Dec 26, 2025
Merged

Update string formatting in optuna/samplers/_grid.py#6401
not522 merged 2 commits intooptuna:masterfrom
kapishyadav:master

Conversation

@kapishyadav
Copy link
Copy Markdown
Contributor

Motivation

Description of the changes

  • In the file optuna/samplers/_grid.py, I replaced string formatting using .format() with f-strings as suggested in the issue.

Copy link
Copy Markdown
Member

@not522 not522 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@not522 not522 enabled auto-merge December 26, 2025 08:45
@not522 not522 added the code-fix Change that does not change the behavior, such as code refactoring. label Dec 26, 2025
@not522 not522 added this to the v4.7.0 milestone Dec 26, 2025
@not522 not522 changed the title Update string formatting in optuna/samplers/_grid.py Update string formatting in optuna/samplers/_grid.py Dec 26, 2025
@not522 not522 merged commit 8f87817 into optuna:master Dec 26, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-fix Change that does not change the behavior, such as code refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants