Skip to content

Fix type annotations for optuna/trial/_frozen.py#6377

Merged
not522 merged 1 commit intooptuna:masterfrom
spenam:fix/_frozen.py
Dec 10, 2025
Merged

Fix type annotations for optuna/trial/_frozen.py#6377
not522 merged 1 commit intooptuna:masterfrom
spenam:fix/_frozen.py

Conversation

@spenam
Copy link
Copy Markdown
Contributor

@spenam spenam commented Dec 9, 2025

Motivation

This PR aims to enhance type annotation handling in Optuna to the module optuna/trial/_frozen.py and contributes to solving #4508.

Description of the changes

Apply changes to optuna/samplers/_frozen.py following PEP 585 to replace typing.Dict with dict in cast.

@nzw0301 nzw0301 changed the title fix type annotations for 'optuna/trial/_frozen.py` fix type annotations for optuna/trial/_frozen.py Dec 9, 2025
@not522 not522 changed the title fix type annotations for optuna/trial/_frozen.py Fix type annotations for optuna/trial/_frozen.py Dec 10, 2025
@not522 not522 added the code-fix Change that does not change the behavior, such as code refactoring. label Dec 10, 2025
@not522 not522 added this to the v4.7.0 milestone Dec 10, 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 99e61d2 into optuna:master Dec 10, 2025
13 of 14 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