Skip to content

Using f-string instead of .format()#6389

Merged
not522 merged 1 commit intooptuna:masterfrom
Lakshman142:fix-issue-6305
Dec 18, 2025
Merged

Using f-string instead of .format()#6389
not522 merged 1 commit intooptuna:masterfrom
Lakshman142:fix-issue-6305

Conversation

@Lakshman142
Copy link
Copy Markdown
Contributor

Motivation

Instead of .format(), used f-string to improve code readability.

Description of the changes

Made changes in optuna/pruners/_threshold.py. Replaced strings with .format() with f-strings in lines 102 and 106.

@not522 not522 changed the title using f-string instead of .format() Using f-string instead of .format() Dec 18, 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 added the code-fix Change that does not change the behavior, such as code refactoring. label Dec 18, 2025
@not522 not522 added this to the v4.7.0 milestone Dec 18, 2025
@not522 not522 merged commit cd0e64c into optuna:master Dec 18, 2025
14 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