Skip to content
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

Fix import path #83

Merged
merged 1 commit into from Feb 13, 2024
Merged

Fix import path #83

merged 1 commit into from Feb 13, 2024

Conversation

Alnusjaponica
Copy link
Contributor

@Alnusjaponica Alnusjaponica commented Feb 10, 2024

Motivation

Fix CI failure in optuna/example. See https://github.com/optuna/optuna-examples/actions/runs/7845757202

Description of the changes

Fix wrong import path to try_import(), which was brought by #65.
with open optuna_integration._imports.try_import() as _imports: fails since optuna_integration._imports and _imports causes name collision (cf. PEP343)
See Alnusjaponica/optuna-examples#3 for the outcome.

Copy link

codecov bot commented Feb 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (33a2d2d) 64.59% compared to head (3f0344d) 64.59%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   64.59%   64.59%           
=======================================
  Files          29       29           
  Lines        2409     2409           
=======================================
  Hits         1556     1556           
  Misses        853      853           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@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.

Thank you for the PR, LGTM!

@nabenabe0928 nabenabe0928 merged commit 3a6b327 into optuna:main Feb 13, 2024
10 checks passed
@Alnusjaponica Alnusjaponica deleted the fix-import-path branch February 13, 2024 11:28
@nabenabe0928 nabenabe0928 added this to the v3.6.0 milestone Feb 13, 2024
@nabenabe0928 nabenabe0928 added the bug Something isn't working label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants