Skip to content

fix type annotations for optuna/study/study.py#6378

Merged
c-bata merged 2 commits intooptuna:masterfrom
spenam:fix/study.py
Dec 10, 2025
Merged

fix type annotations for optuna/study/study.py#6378
c-bata merged 2 commits intooptuna:masterfrom
spenam:fix/study.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/study/study.py and contributes to solving #4508.

Description of the changes

Apply changes to optuna/study/study.py following PEP 585 to replace Callable and Sequence from typing.

@nzw0301 nzw0301 changed the title fix type annotations for 'optuna/study/study.py` fix type annotations for optuna/study/study.py Dec 9, 2025
Copy link
Copy Markdown
Member

@nzw0301 nzw0301 left a comment

Choose a reason for hiding this comment

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

Thanks!

@c-bata c-bata added the code-fix Change that does not change the behavior, such as code refactoring. label Dec 10, 2025
@c-bata c-bata added this to the v4.7.0 milestone Dec 10, 2025
@c-bata c-bata merged commit 2451e8c into optuna:master Dec 10, 2025
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.

3 participants