-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
MAINT: expire deprecations #28254
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
MAINT: expire deprecations #28254
Conversation
|
The benchmarks were using deprecated |
|
Very nice, thanks! Have to look through once more, but these all seem straight forward. The C ones seem potentially higher noise. I think that is acceptable, but maybe we should duplicate a slightly longer release note in the
Hmmm, we go via the |
|
There is still a reference to |
|
CI is passing |
|
I'll address the remaining stub changes in a follow-up PR |
|
Thanks Matti. Let's get this in and see how it shakes out. |
These were deprecated in np1.7 and will be removed in np2.3 (currently removed on numpy main branch). xref numpy/numpy#28254
These were deprecated in np1.7 and will be removed in np2.3 (currently removed on numpy main branch). xref numpy/numpy#28254
It's no longer supported as of numpy 2.3, see https://numpy.org/devdocs/release/2.3.0-notes.html and numpy/numpy#28254 Fix #2322
It's no longer supported as of numpy 2.3, see https://numpy.org/devdocs/release/2.3.0-notes.html and numpy/numpy#28254 Fix #2322
It's no longer supported as of numpy 2.3, see https://numpy.org/devdocs/release/2.3.0-notes.html and numpy/numpy#28254 Fix #2322
It's no longer supported as of numpy 2.3, see https://numpy.org/devdocs/release/2.3.0-notes.html and numpy/numpy#28254 Fix #2322
It's no longer supported as of numpy 2.3, see https://numpy.org/devdocs/release/2.3.0-notes.html and numpy/numpy#28254 Fix #2322
Because numpy removed the former function (in a minor release) with numpy/numpy#28254. The function was an alias, so there's no change in behavior, i.e. it always returned bytes. See also 2a92b6b, where the same function was already replaced in strokemap.py.
Because numpy removed the former function (in a minor release) with numpy/numpy#28254. The function was an alias, so there's no change in behavior, i.e. it always returned bytes. See also 2a92b6b, where the same function was already replaced in strokemap.py.
Because numpy removed the former function (in a minor release) with numpy/numpy#28254. The function was an alias, so there's no change in behavior, i.e. it always returned bytes. See also 2a92b6b, where the same function was already replaced in strokemap.py. (cherry picked from commit ab017e0)
Because numpy removed the former function (in a minor release) with numpy/numpy#28254. The function was an alias, so there's no change in behavior, i.e. it always returned bytes. See also 2a92b6b, where the same function was already replaced in strokemap.py. (cherry picked from commit ab017e0)
Because numpy removed the former function (in a minor release) with numpy/numpy#28254. The function was an alias, so there's no change in behavior, i.e. it always returned bytes. See also 2a92b6b, where the same function was already replaced in strokemap.py. (cherry picked from commit ab017e0)
Deprecated since numpy 1.14 according to numpy/numpy#28254 This should be the correct fix for huggingface#1343 And after this is merged, one can likely just revert this huggingface#1351
numpy/numpy#28254 When constructing a dtype from a class with a dtype attribute, that attribute must be a dtype-instance rather than a thing that can be parsed as a dtype instance. hist.datatype now returns float instead of np.number as datatype.
In numpy 2.3, converting np.number to a dtype no longer allowed. See: numpy/numpy#28254 "When constructing a dtype from a class with a dtype attribute, that attribute must be a dtype-instance rather than a thing that can be parsed as a dtype instance." hist.datatype now returns float instead of np.number as datatype.
- Upgrade to histogrammar v1.1.1 - In numpy 2.3, converting np.number to a dtype no longer allowed. - See for details: numpy/numpy#28254 - hist.datatype now returns float instead of np.number as datatype.
- None was depricated since numpy 1.20 and removed in 2.3.0 - See numpy/numpy#28254
- None was depricated since numpy 1.20 and removed in 2.3.0 - See numpy/numpy#28254
This will be the release note once I have a PR number
NPY_OWNDATAfrom cython interfaces in favor ofNPY_ARRAY_OWNDATA(deprecated since 1.7)numpy/npy_1_7_deprecated_api.hand C macros likeNPY_OWNDATAin favor ofNPY_ARRAY_OWNDATA(deprecated since 1.7)generate_divbyzero_errortonpy_set_floatstatus_divbyzeroandgenerate_overflow_errortonpy_set_floatstatus_overflow(deprecated since 1.10)np.tostring(deprecated since 1.19)np.conjugateof non-numeric types (deprecated since 1.13)np.bincount(...minlength=None), use 0 intead (deprecated since 1.14)shape=Noneto functions with a non-optional shape argument raises, use()instead (deprecated since 1.20)modeandsearchsideraise (deprecated since 1.20)__array_finalize__ = Noneraises (deprecated since 1.23)np.fromfileandnp.fromstringerror on bad data, previously they would guess (deprecated since 1.18)datetime64andtimedelta64construction with a tuple no longer accepts aneventvalue, either use a two-tuple of (unit, num) or a 4-tuple of (unit, num, den, 1) (deprecated since 1.14)dtypefrom a class with adtypeattribute, that attribute must be a dtype-instance rather than a thing that can be parsed as a dtype instance (deprecated in 1.19). At some point the whole construct of using a dtype attribute will be deprecated (see DEP: Deprecate constructing dtypes from any object having a .dtype attribute #25306)np.tostringhas been removed, use `tobytes instead (deprecated since 1.19)concatenate()withaxis=Noneusessame-kindcasting by default, notunsafe(deprecated since 1.20)fromstringnow raises, usefrombufferinstead (deprecated since 1.14)np.inexactornp.floatingto a dtype errors (deprecated since 1.19)np.complex,np.integer, np.signedinteger,np.unsignedinteger,np.genericto a dtype raises, it used to convert tocomplex128` (deprecated since 1.19)rounderrors for complex scalars. Usenp.roundorscalar.roundinstead (deprecated since 1.19)converters=floatkeyword argument.np.loadtxt(...).astype(np.int64)signatureerrors. Usedtypeor fill the tuple withNone(deprecated since 1.19)matrix.A(deprecated since 1.20)