diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-11-17 14:21:54 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-11-17 14:21:54 +0100 |
commit | 075859216fae0509c52a54cb5c96c217f23026ca (patch) | |
tree | a1020e13343143102f29207f26334d470fb72802 /numpy/array_api/tests/test_asarray.py | |
parent | 5170119002269873d9bafac5c7275c907441b19a (diff) | |
download | numpy-075859216fae0509c52a54cb5c96c217f23026ca.tar.gz |
DEP: Next step in scalar type alias deprecations/futurewarnings
Finalizes the scalar type alias deprecations making them an error.
However, at the same time adds a `FutureWarning` that new aliases
will be introduced in the future.
(They would eventually be preferred over the `str_`, etc. version.)
It may make sense, that this FutureWarning is already propelled soon
since it interacts with things such as changing the representation of
strings to `np.str_("")` if the preferred alias becomes `np.str`.
It also introduces a new deprecation to remove the 0 sized bit-aliases
and the bitsize `bool8` alias. (Unfortunately, these are here still allowed
as part of the `np.sctypeDict`).
Diffstat (limited to 'numpy/array_api/tests/test_asarray.py')
0 files changed, 0 insertions, 0 deletions