Skip to content

Fix type checking in trial folder - #6510

Merged
c-bata merged 1 commit into
optuna:masterfrom
sateeshkumarb:master
Mar 13, 2026
Merged

c-bata merged 1 commit into
optuna:masterfrom
sateeshkumarb:master

Conversation

@sateeshkumarb

Copy link
Copy Markdown

Motivation

Partially fixes the issue: #6029

Description of the changes

Move imports that were used solely for type checking under the block TYPE_CHECKING (in folder trial).

As the changes were minor I've included changes from multiple files (under the same subfolder) in this PR. Will raise separate PRs (one per file if required).

@c-bata c-bata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thank you for your contribution.

@c-bata c-bata added the code-fix Change that does not change the behavior, such as code refactoring. label Mar 13, 2026
@c-bata c-bata added this to the v4.9.0 milestone Mar 13, 2026
@c-bata
c-bata merged commit 4df4b72 into optuna:master Mar 13, 2026
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