Skip to content

Fix string format of optuna/distributions.py#6306

Merged
c-bata merged 4 commits intooptuna:masterfrom
nabenabe0928:fix-string-format
Oct 27, 2025
Merged

Fix string format of optuna/distributions.py#6306
c-bata merged 4 commits intooptuna:masterfrom
nabenabe0928:fix-string-format

Conversation

@nabenabe0928
Copy link
Copy Markdown
Contributor

Motivation

This issue relates to:

Description of the changes

  • Use f-string instead string format

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.21%. Comparing base (3d4b9ce) to head (7f6c6c3).
⚠️ Report is 60 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6306      +/-   ##
==========================================
+ Coverage   89.18%   89.21%   +0.03%     
==========================================
  Files         209      209              
  Lines       13920    13935      +15     
==========================================
+ Hits        12414    12432      +18     
+ Misses       1506     1503       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nabenabe0928 nabenabe0928 changed the title Fix string format in optuna/distributions.py Fix string format of optuna/distributions.py Oct 17, 2025
@nabenabe0928 nabenabe0928 added the code-fix Change that does not change the behavior, such as code refactoring. label Oct 17, 2025
@nabenabe0928
Copy link
Copy Markdown
Contributor Author

@c-bata @sawa3030
Could you review this PR?

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.

Thank you for the update. LGTM with a nit.

Co-authored-by: c-bata <contact@c-bata.link>
@nabenabe0928
Copy link
Copy Markdown
Contributor Author

@c-bata @sawa3030
I addressed the @c-bata's comment, PTAL!

Copy link
Copy Markdown
Collaborator

@sawa3030 sawa3030 left a comment

Choose a reason for hiding this comment

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

LGTM

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 added this to the v4.6.0 milestone Oct 27, 2025
@c-bata c-bata merged commit 363de10 into optuna:master Oct 27, 2025
12 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.

3 participants