-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add module exception #506
add module exception #506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add an exception.rst
file in the docs such that we have these visible to users in the documentation?
|
||
from __future__ import annotations | ||
|
||
__all__ = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the advantage of declaring the exports explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When importing objects like from A import *
, only the objects defined in __all__
should be imported.
I usually leave this in, but I'll remove it if it's not needed.
64e48a8
to
f0249a5
Compare
Added |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #506 +/- ##
==========================================
+ Coverage 96.19% 96.21% +0.02%
==========================================
Files 10 11 +1
Lines 867 872 +5
==========================================
+ Hits 834 839 +5
Misses 33 33 ☔ View full report in Codecov by Sentry. |
With this PR, I hope to make it easier to catch errors while using
bayesian-optimization
.