Skip to content

MAINT cleanup utils.__init__: move IS_PYPY, _IS_WASM, _IS_32BIT into utils.fixes #28768

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

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

jeremiedbb
Copy link
Member

Extracted from #26686 to ease the reviews. The end goal is to clean the utils.__init__ module as explained in the linked PR.

The closest module I found for compat stuff like this is utils.fixes, but open to better suggestions.
I checked around and it looks like IS_PYPY is used at least by imbalanced-learn, so I kindly deprecated it (although it was never meant to be public @glemaitre 😄 ). I also renamed it _IS_PYPY, with a leading underscore to make it explicitly private.
I didn't find any external usage of _IS_WASM and _IS_32BIT, so I think it's safe to move them without further notice.

@jeremiedbb jeremiedbb added the Quick Review For PRs that are quick to review label Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

✔️ Linting Passed

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

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

@ogrisel ogrisel enabled auto-merge (squash) April 8, 2024 07:34
@ogrisel ogrisel merged commit cd1b1be into scikit-learn:main Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Quick Review For PRs that are quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants