Skip to content

Refactor return statement style in optuna/storages/_rdb/models.py for consistency among the codebase #6143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Shubham05122002
Copy link
Contributor

Motivation

This PR updates the return statement formatting in optuna/storages/_rdb/models.py to align with Optuna's code style, which prefers return a, b over return (a, b) for returning tuples.

Changes

  • Replaced parentheses-wrapped return tuples with comma-separated return values.

@nabenabe0928 nabenabe0928 changed the title Refactor return statement style in optuna/storages/_rdb/models.py for consistency among the codebase. Refactor return statement style in optuna/storages/_rdb/models.py for consistency among the codebase Jun 9, 2025
@nabenabe0928 nabenabe0928 merged commit cad5190 into optuna:master Jun 9, 2025
15 checks passed
@nabenabe0928 nabenabe0928 added the code-fix Change that does not change the behavior, such as code refactoring. label Jun 9, 2025
@nabenabe0928 nabenabe0928 added this to the v4.4.0 milestone Jun 9, 2025
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