Skip to content

Change string formatting for _successive_halving.py#6375

Merged
not522 merged 2 commits intooptuna:masterfrom
spenam:refactor
Dec 10, 2025
Merged

Change string formatting for _successive_halving.py#6375
not522 merged 2 commits intooptuna:masterfrom
spenam:refactor

Conversation

@spenam
Copy link
Copy Markdown
Contributor

@spenam spenam commented Dec 9, 2025

Motivation

I wanted to change the string formatting according to issue #6305 for compatibility.

Description of the changes

I replaced the use of "{}".format(var) with f-strings as f"{var}" formatting in optuna/pruners/_successive_halving.py

@not522 not522 changed the title refactor(pruners/_successive_halving): change string formatting Change string formatting for _successive_halving.py Dec 10, 2025
@not522 not522 added the code-fix Change that does not change the behavior, such as code refactoring. label Dec 10, 2025
@not522 not522 added this to the v4.7.0 milestone Dec 10, 2025
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 merged commit 1146ac2 into optuna:master Dec 10, 2025
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