Skip to content

Replace more .format() calls with f-strings#6349

Merged
c-bata merged 3 commits intooptuna:masterfrom
varundevr:replace-format-with-fstring-2
Nov 21, 2025
Merged

Replace more .format() calls with f-strings#6349
c-bata merged 3 commits intooptuna:masterfrom
varundevr:replace-format-with-fstring-2

Conversation

@varundevr
Copy link
Copy Markdown
Contributor

Motivation

This PR continues the work on issue #6305 by converting remaining .format() usages into f-strings.
This improves readability and keeps the codebase consistent with modern Python practices.

Description of the changes

Replaced a few additional .format() calls with f-strings in the relevant modules.
No functional behavior was changed—only formatting and style improvements were made.

@c-bata c-bata self-assigned this Nov 20, 2025
@c-bata
Copy link
Copy Markdown
Member

c-bata commented Nov 20, 2025

@varundevr Could you resolve CI errors?

@varundevr
Copy link
Copy Markdown
Contributor Author

@varundevr Could you resolve CI errors?

Sure, I have fixed it!

@c-bata c-bata added the code-fix Change that does not change the behavior, such as code refactoring. label Nov 20, 2025
@c-bata c-bata added this to the v4.7.0 milestone Nov 20, 2025
Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

LGTM.

@c-bata c-bata merged commit fe75dc7 into optuna:master Nov 21, 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