diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-03 14:44:04 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-05 17:15:51 +0100 |
commit | ceccabebc444df4be7a2d744bd5c76854799df38 (patch) | |
tree | 9792126bab4341aafd7950f48a5338872a03034d /numpy/array_api/_set_functions.py | |
parent | 9f1b3efef463ab5f747b9c14242fe200e6c08139 (diff) | |
download | numpy-ceccabebc444df4be7a2d744bd5c76854799df38.tar.gz |
MAINT: Add additional information to missing scalar AttributeError
This is a followup on gh-22607 which removed them. Since it appears some
users missed the DeprecationWarning entirely, it may help them to
include the old information as an attribute error.
An example is:
```
In [1]: np.int
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself.
Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64`
or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for
additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note
at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
```
Yes, that is very verbose...
your changes. Lines starting
Diffstat (limited to 'numpy/array_api/_set_functions.py')
0 files changed, 0 insertions, 0 deletions