Skip to content

Refactor returns in v3.0.0.d.py#6154

Merged
nabenabe0928 merged 1 commit intooptuna:masterfrom
dross20:refactor-return-v3.0.0.d.py
Jun 14, 2025
Merged

Refactor returns in v3.0.0.d.py#6154
nabenabe0928 merged 1 commit intooptuna:masterfrom
dross20:refactor-return-v3.0.0.d.py

Conversation

@dross20
Copy link
Copy Markdown
Contributor

@dross20 dross20 commented Jun 13, 2025

Motivation

Per #6136, we need to replace all tuple returns of the form return (a, b) with return a, b.

Description of the changes

This PR refactors the return statements in optuna/storages/_rdb/alembic/versions/v3.0.0.d.py to use implicitly packed tuples rather than explicitly packed tuples.

Copy link
Copy Markdown
Contributor

@nabenabe0928 nabenabe0928 left a comment

Choose a reason for hiding this comment

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

LGTM:)

@nabenabe0928 nabenabe0928 added the code-fix Change that does not change the behavior, such as code refactoring. label Jun 14, 2025
@nabenabe0928 nabenabe0928 added this to the v4.5.0 milestone Jun 14, 2025
@nabenabe0928 nabenabe0928 merged commit af5ea38 into optuna:master Jun 14, 2025
15 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