Skip to content

Refactor test_study.py to use f-string instead of .format()#6372

Merged
c-bata merged 6 commits intooptuna:masterfrom
nepersoned:master
Dec 8, 2025
Merged

Refactor test_study.py to use f-string instead of .format()#6372
c-bata merged 6 commits intooptuna:masterfrom
nepersoned:master

Conversation

@nepersoned
Copy link
Copy Markdown
Contributor

Description

This PR replaces .format() with f-strings in optuna/tests/study_tests/test_study.py to improve readability and modernize the code syntax.

Related Issue

Resolves #6305

@nepersoned nepersoned closed this Dec 7, 2025
@nepersoned nepersoned reopened this Dec 7, 2025
@c-bata c-bata added the code-fix Change that does not change the behavior, such as code refactoring. label Dec 8, 2025
@c-bata c-bata added this to the v4.7.0 milestone Dec 8, 2025
@c-bata c-bata merged commit 6f9c562 into optuna:master Dec 8, 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.

Use f-string and {var_name=} instead of .format and var_name={var_name}

2 participants