Skip to content

Silence deprecation warnings in _repr_mimebundle_ - #34069

Merged
betatim merged 1 commit into
scikit-learn:mainfrom
jcrist:silence-depr-warning-in-repr
May 27, 2026
Merged

betatim merged 1 commit into
scikit-learn:mainfrom
jcrist:silence-depr-warning-in-repr

Conversation

@jcrist

@jcrist jcrist commented May 20, 2026

Copy link
Copy Markdown
Contributor

This silences deprecation warnings raised when accessing fitted attributes while generating the rich html repr. The deprecated attributes are still included in the repr (but will warn when accessed by the user), but no warning is generated.

Fixes #34056

AI usage disclosure

I did not use AI for anything.

Comment thread sklearn/base.py Resolved
Comment thread sklearn/tests/test_base.py Resolved
Comment thread sklearn/tests/test_base.py Resolved

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @jcrist. Just a small suggestion

Comment thread sklearn/base.py Resolved
@jeremiedbb jeremiedbb added this to the 1.9 milestone May 21, 2026
This silences deprecation warnings raised when accessing fitted
attributes while generating the rich html repr. The deprecated
attributes are still included in the repr (but will warn when accessed
by the user), but no warning is generated.
@jcrist
jcrist force-pushed the silence-depr-warning-in-repr branch from d591b9f to 99ea969 Compare May 26, 2026 21:03
@jcrist

jcrist commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

Apologies for the delay here, I believe all concerns have been addressed.

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@betatim
betatim merged commit a6f4c33 into scikit-learn:main May 27, 2026
37 of 38 checks passed
@jcrist
jcrist deleted the silence-depr-warning-in-repr branch May 27, 2026 11:12
@jeremiedbb jeremiedbb added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Jun 1, 2026
@jeremiedbb jeremiedbb mentioned this pull request Jun 1, 2026
16 tasks done
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No Changelog Needed To backport PR merged in master that need a backport to a release branch defined based on the milestone.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation warning of probA_/probB_ raised in _repr_mimebundle_

5 participants