Skip to content

Replace .format() with f-strings in _parallel_coordinate.py#6431

Merged
not522 merged 1 commit intooptuna:masterfrom
yasumorishima:fix/issue-6305-fstring-parallel-coordinate
Feb 11, 2026
Merged

Replace .format() with f-strings in _parallel_coordinate.py#6431
not522 merged 1 commit intooptuna:masterfrom
yasumorishima:fix/issue-6305-fstring-parallel-coordinate

Conversation

@yasumorishima
Copy link
Copy Markdown
Contributor

Part of #6305.

Replaced 2 occurrences of .format() with f-strings in optuna/visualization/_parallel_coordinate.py.

  • "{:.3g}".format(math.pow(10, x))f"{math.pow(10, x):.3g}"
  • "{}...".format(label[:17])f"{label[:17]}..."

Part of optuna#6305.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@yasumorishima yasumorishima force-pushed the fix/issue-6305-fstring-parallel-coordinate branch from 0aaf003 to 9e808f2 Compare February 10, 2026 13:20
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.

Thank you! LGTM!

@not522 not522 added the code-fix Change that does not change the behavior, such as code refactoring. label Feb 11, 2026
@not522 not522 added this to the v4.8.0 milestone Feb 11, 2026
@not522 not522 changed the title Replace .format() with f-strings in _parallel_coordinate.py Replace .format() with f-strings in _parallel_coordinate.py Feb 11, 2026
@not522 not522 merged commit 7e23a00 into optuna:master Feb 11, 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