-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
FIX short deprecation cycle for private module #31500
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
I added this PR to the 1.7.1 milestone. |
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.
I do not think we normally had deprecation cycle for a private module. Was this private module use in a library you know about?
It was |
I don't know why the test fails in the CI but pass locally... Maybe we need to deprecate using |
The issue is that the module is imported by another test. Sometimes before, sometimes after, and when it's before it means that the warning was already raised in the first test so it's not during the test of interest. Thus I modified the test to reload the module if it was already loaded to make sure that the warning is raised no matter the execution order of the tests. |
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
@glemaitre what do you think of the changes I made to your PR before merging ?
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
Let's merge this! The work-around of reloading the module in the test feels a bit hacky, but this will be removed for the 1.8 release so I guess we can leave with it. |
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
In #30763, we reorganize the module for the
repr
of estimator. The public functions associated with this module and that could be potentially used by developer of third-party libraries should not have subject to any breaking changes.Right now, we are breaking the code of people if they were importing from the module. Let's be a bit more gentle and just warn for a cycle before to remove the module.