Skip to content

Implement Type-Checking for optuna/_imports.py#6167

Merged
y0z merged 1 commit intooptuna:masterfrom
AdrianStrymer:use-type-checking
Jun 21, 2025
Merged

Implement Type-Checking for optuna/_imports.py#6167
y0z merged 1 commit intooptuna:masterfrom
AdrianStrymer:use-type-checking

Conversation

@AdrianStrymer
Copy link
Copy Markdown
Contributor

Motivation

This PR addresses issue #6029 by updating type checking in optuna/_imports.py.
After the changes, flake8 reports no warnings.

Description of the changes

Updated type checking for optuna/_imports.py.

@nabenabe0928 nabenabe0928 added the code-fix Change that does not change the behavior, such as code refactoring. label Jun 19, 2025
@nabenabe0928
Copy link
Copy Markdown
Contributor

@sawa3030
Could you review this PR?

Copy link
Copy Markdown
Contributor

@nabenabe0928 nabenabe0928 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 for the PR, LGTM!

@nabenabe0928 nabenabe0928 assigned y0z and unassigned nabenabe0928 and sawa3030 Jun 19, 2025
@nabenabe0928
Copy link
Copy Markdown
Contributor

@sawa3030 I will re-assign to @y0z considering the number of PRs you have right now!

Copy link
Copy Markdown
Member

@y0z y0z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@y0z y0z merged commit c90f646 into optuna:master Jun 21, 2025
15 checks passed
@y0z y0z removed their assignment Jun 21, 2025
@y0z y0z added this to the v4.5.0 milestone Jun 21, 2025
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.

4 participants