-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
DEP: Finalize MachAr and machar deprecations #22638
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
Conversation
numpy/core/__init__.py
Outdated
@@ -153,13 +152,13 @@ def _DType_reduce(DType): | |||
|
|||
|
|||
def __getattr__(name): | |||
# Deprecated 2021-10-20, NumPy 1.22 | |||
if name == "machar": | |||
# Deprecated 2022-11-21, NumPy 1.24. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be NumPY 1.25 now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, fine, maybe makes life easier for Numba (or it doesn't because for them the other one matters)...
This removes the attributes on finfo and the "public" module. It also deprecates `np.core.MachAr`. We should be able to get away with just deleting it, but there seems little reason to not just deprecate it for now.
Not sure what is going on with circleci here, but it looks related :) |
The FutureWarnings are new (annoying but the doc build doesn't fail on them). I think either the job ran at a weird time with respect to branching, or the update to 1.25 development, is missing to indlude the new release notes. |
Ran through now, I hope it was just weird timing or caching with branching and updating that or so... |
It is showing up in other PRs, so not a timing oddity. The release notes are correctly linked, the error message itself is emitted from |
My guess is a caching problem. |
Well, this is going through and I just restarted the last few jobs. Hopefully, that is all we see from this. |
Thanks Sebastian. |
This removes the attributes on finfo and the "public" module. It also deprecates
np.core.MachAr
. We should be able to get away with just deleting it, but there seems little reason to not just deprecate it for now.