Skip to content

Fix type checking - #6507

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

@sateeshkumarb sateeshkumarb commented Mar 12, 2026 •

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

Comment thread optuna/trial/_trial.py Resolved
@c-bata c-bata self-assigned this Mar 13, 2026
@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 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 this to the v4.8.0 milestone Mar 13, 2026
@c-bata
c-bata merged commit 54fe633 into optuna:master Mar 13, 2026
12 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