-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: remove reductions import in top-level __init__.py #2105
Conversation
Reductions are stated to not be in the public API (https://www.cvxpy.org/api_reference/cvxpy.reductions.html#disclaimer, #2104 (comment)), but they are imported in the top-level `__init__.py`. This change removes that import.
Benchmarks that have stayed the same:
|
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.
LGTM
Is it possible we put the reductions import there because it helped build the sphinx API docs? Not a reason to keep it of course. |
Honestly I have no idea how long reductions have been in there or for what
reasons. Your guess is at least as good as mine.
…On Sat, Apr 15, 2023 at 11:43 AM Steven Diamond ***@***.***> wrote:
Is it possible we put the reductions import there because it helped build
the sphinx API docs? Not a reason to keep it of course.
—
Reply to this email directly, view it on GitHub
<#2105 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRLIFELX2CYXWOP522TN5DXBLT3JANCNFSM6AAAAAAW7QL3QM>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
I checked with git blame and it looks like it was related to the API docs: |
When you said it was added in the API docs I started to sweat since I was
the last person to revise those. I was relieved when I saw it was way back
in the 0.4.x release series, lol.
…On Sat, Apr 15, 2023 at 3:00 PM Steven Diamond ***@***.***> wrote:
I checked with git blame and it looks like it was related to the API docs:
19c5177
<19c5177>
Anyway we can make the docs work easily enough.
—
Reply to this email directly, view it on GitHub
<#2105 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRLIFA34F37IZJM5ESL4I3XBMK7RANCNFSM6AAAAAAW7QL3QM>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
We might as well remove them from the API docs, since they're not public. |
@akshayka I think they should be documented on the website. Sometimes advanced users benefit from knowing what goes on under the hood. We can put them under a "private API" heading if that feels more appropriate. |
I think users who are that advanced should just read the source code. The risk in documenting private symbols on our website is that regular users will find these symbols and become dependent on them; people will just treat the private API as public. Similar to That said, I don't feel strongly. I just think removing these symbols will make maintainers' lives easier. |
Description
Reductions are stated to not be in the public API
(https://www.cvxpy.org/api_reference/cvxpy.reductions.html#disclaimer, #2104 (comment)), but they are imported in the top-level
__init__.py
.This change removes that import.
Type of change