Skip to content

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

Merged
ogrisel merged 3 commits intoscikit-learn:mainfrom
jeremiedbb:cln_utils_ispypy
Apr 8, 2024
Merged

MAINT cleanup utils.__init__: move IS_PYPY, _IS_WASM, _IS_32BIT into utils.fixes#28768
ogrisel merged 3 commits intoscikit-learn:mainfrom
jeremiedbb:cln_utils_ispypy

Conversation

@jeremiedbb
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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