Skip to content

Fix type annotations for tests/study_tests/test_study.py#6379

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

Fix type annotations for tests/study_tests/test_study.py#6379
not522 merged 1 commit intooptuna:masterfrom
spenam:fix/test_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 tests/study_tests/test_study.py and contributes to solving #4508.

Description of the changes

Apply changes to tests/study_tests/test_study.py following PEP 585 to reduce Callable in the type definition.

@nzw0301 nzw0301 changed the title fix type annotations for 'tests/study_tests/test_study.py` fix type annotations for tests/study_tests/test_study.py Dec 9, 2025
@not522 not522 changed the title fix type annotations for tests/study_tests/test_study.py Fix type annotations for tests/study_tests/test_study.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 22c1d0d into optuna:master Dec 10, 2025
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