Skip to content

Use TYPE_CHECKING in nsgaii/_after_trial_strategy.py - #6524

Merged
y0z merged 1 commit into
optuna:masterfrom
saivedant169:refactor/type-checking-nsgaii-after-trial
Mar 19, 2026
Merged

y0z merged 1 commit into
optuna:masterfrom
saivedant169:refactor/type-checking-nsgaii-after-trial

Conversation

@saivedant169

Copy link
Copy Markdown
Contributor

Part of #6029.

Moved Callable, Sequence, FrozenTrial, and TrialState into TYPE_CHECKING. None are used as runtime values in this file.

ruff check --select TCH passes clean.

…gy.py

Moved Callable, Sequence, FrozenTrial, and TrialState into
TYPE_CHECKING. None are used as runtime values.

Part of optuna#6029

@y0z y0z 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

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