8000 Quick fix for class deprecation decorator by bsipocz · Pull Request #15995 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Quick fix for class deprecation decorator #15995

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

Closed

Conversation

bsipocz
Copy link
Contributor
@bsipocz bsipocz commented Dec 31, 2019

This is a quick and dirty fix for my use case, but looking at the astropy decorator I suspect there may be some corner cases that still doesn't work.

Reference Issues/PRs

closes #15994

Copy link
Member
@rth rth left a comment

Choose a reason for hiding this comment

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

Could you please add a non regression test?

Edit: Also CI fails.

cls.__init__ = wrapped
cls.__new__ = wrapped_new
Copy link
Member

Choose a reason for hiding this comment

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

would it be enough to only decorate new and not init now?

@bsipocz
Copy link
Contributor Author
bsipocz commented Jan 31, 2020

@NicolasHug - this has fallen through the cracks. I'll try to come back and wrap it up over the weekend.

@amueller
Copy link
Member
amueller commented Jun 6, 2020

Did you still want to work on this?

@bsipocz
Copy link
Contributor Author
bsipocz commented Jun 6, 2020

yes, can come back to it after the sprint/once the current PR is opened.

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.

FutureWarning is not issued for deprecated class
5 participants
0