Skip to content

Use f-strings in _imports.py#6442

Merged
not522 merged 3 commits intooptuna:masterfrom
edwiniac:fix/fstring-imports
Feb 13, 2026
Merged

Use f-strings in _imports.py#6442
not522 merged 3 commits intooptuna:masterfrom
edwiniac:fix/fstring-imports

Conversation

@edwiniac
Copy link
Copy Markdown
Contributor

Description

Addresses #6305

Converted 2 .format() calls to f-strings in optuna/_imports.py.

Checklist

  • One file only

@not522 not522 changed the title Use f-strings in optuna/_imports.py Use f-strings in _imports.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
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!
To minimize differences, I've removed !r.

@not522 not522 enabled auto-merge February 13, 2026 03:47
@not522 not522 merged commit 54c43e1 into optuna:master Feb 13, 2026
12 of 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