Skip to content

FIX change FutureWarnings to DeprecationWarnings for the tags #30573

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

glemaitre
Copy link
Member

The FutureWarnings that we raise related to __sklearn_tags__ are visible to the end user but without the possibility to fix it because the warnings is more intended to developer of estimators.

This PR changes from FutureWarnings to DeprecationWarnings.

Copy link

github-actions bot commented Jan 3, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 012ed13. Link to the linter CI: here

@jeremiedbb jeremiedbb added this to the 1.6.1 milestone Jan 3, 2025
@jeremiedbb
Copy link
Member

jeremiedbb commented Jan 3, 2025

The fragment name should be 30573.fix.rst. By the way, haven't all of these been added after 1.6 ? in which case it would not be a breaking change.

@glemaitre
Copy link
Member Author

It will be a breaking change between 1.6.0 and 1.6.1 in case people relies on the inheritance of the Warnings.

@jeremiedbb
Copy link
Member

jeremiedbb commented Jan 3, 2025

It will be a breaking change between 1.6.0 and 1.6.1 in case people relies on the inheritance of the Warnings

I thought we introduced the warnings after 1.6 but we did it in between the RC and the final release, so all good

@jeremiedbb jeremiedbb merged commit 191bdbf into scikit-learn:main Jan 6, 2025
30 checks passed
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jan 8, 2025
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants