Skip to content
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

TST check inheritance order in common tests #30234

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

adrinjalali
Copy link
Member

Fixes #30228

This adds a test to our API checks, to test whether the inheritance order is correct.

We can add / change the defined DAG in the future / in this PR.

cc @adam2392 @thomasjpfan @glemaitre

Copy link

github-actions bot commented Nov 7, 2024

✔️ Linting Passed

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

Generated for commit: e0c036c. Link to the linter CI: here

Copy link
Member

@adam2392 adam2392 left a comment

Choose a reason for hiding this comment

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

LGTM, and makes sense.

Comment on lines +1790 to +1791
"This means, for instance, `BaseEstimator` should be on the right side of most "
"other mixins. You need to change the order so that:\n"
Copy link
Member

Choose a reason for hiding this comment

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

Is there ever a case BaseEstimator would come on the left side?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not that I know of, but I also don't know everything, that's why my sentence here is not too definite 😅

@thomasjpfan thomasjpfan merged commit 551d56c into scikit-learn:main Nov 7, 2024
29 of 30 checks passed
@jtilly jtilly mentioned this pull request Nov 8, 2024
@adrinjalali adrinjalali deleted the mixins-order branch November 8, 2024 16:41
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.

Have a common test in check_estimator checking for the right order of mixin inheritance
3 participants