Skip to content

Update black target to Python 3.9.#6308

Merged
not522 merged 1 commit intooptuna:masterfrom
toshihikoyanase:update-black-target-version
Oct 21, 2025
Merged

Update black target to Python 3.9.#6308
not522 merged 1 commit intooptuna:masterfrom
toshihikoyanase:update-black-target-version

Conversation

@toshihikoyanase
Copy link
Copy Markdown
Member

Motivation

This is a follow-up PR to #6302.
See also optuna/optuna-integration#254.

Description of the changes

  • Update the black's target version from Python 3.8 to 3.9.
    • The major code change is to enclose them in parentheses when using multiple context managers in a with statement.

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 the code-fix Change that does not change the behavior, such as code refactoring. label Oct 21, 2025
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 merged commit 5039c76 into optuna:master Oct 21, 2025
21 checks passed
@not522 not522 added this to the v4.6.0 milestone Oct 21, 2025
@toshihikoyanase toshihikoyanase deleted the update-black-target-version branch October 21, 2025 07:17
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