Skip to content

FIX change FutureWarnings to DeprecationWarnings for the tags#30573

Merged
jeremiedbb merged 4 commits into
scikit-learn:mainfrom
glemaitre:tags_futurewarnings_to_deprecationwarnings
Jan 6, 2025
Merged

FIX change FutureWarnings to DeprecationWarnings for the tags#30573
jeremiedbb merged 4 commits into
scikit-learn:mainfrom
glemaitre:tags_futurewarnings_to_deprecationwarnings

Conversation

@glemaitre
Copy link
Copy Markdown
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.

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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