Skip to content

Use f-strings in _deprecated.py#6443

Merged
not522 merged 1 commit intooptuna:masterfrom
edwiniac:fix/fstring-deprecated
Feb 13, 2026
Merged

Use f-strings in _deprecated.py#6443
not522 merged 1 commit intooptuna:masterfrom
edwiniac:fix/fstring-deprecated

Conversation

@edwiniac
Copy link
Copy Markdown
Contributor

Description

Addresses #6305

Converted direct .format() call to f-string in optuna/_deprecated.py.

Note: Left template-based formatting (_DEPRECATION_WARNING_TEMPLATE.format() etc.) intact.

Checklist

  • One file only

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 changed the title Use f-strings in optuna/_deprecated.py Use f-strings in _deprecated.py Feb 13, 2026
@not522 not522 added the code-fix Change that does not change the behavior, such as code refactoring. label Feb 13, 2026
@not522 not522 added this to the v4.8.0 milestone Feb 13, 2026
@not522 not522 merged commit 143604c into optuna:master Feb 13, 2026
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