diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-01-22 00:44:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 16:44:58 -0700 |
commit | 33273e4ae770cac1ee0cb304ad5a0056bb59ad56 (patch) | |
tree | 546680d3c4778ad3bceed02e3fab73277ca46fe3 /numpy/array_api/tests/test_creation_functions.py | |
parent | b91f3c00ee113596acd3e508a593187258291f61 (diff) | |
download | numpy-33273e4ae770cac1ee0cb304ad5a0056bb59ad56.tar.gz |
ENH: Add dtype support to the array comparison ops (#18128)
* ENH: Added `_ArrayLikeNumber`
* ENH: Added dtype support to the array comparison ops
* MAINT: Made `dtype` and `ndarray` covariant
The dtypes scalar-type and ndarrays' dtype are now covariant instead of invariant.
This change is necasary in order to ensure that all generic subclasses can be used as underlying scalar type.
* TST: Updated the comparison typing tests
* MAINT: Fixed an issue where certain `array > arraylike` operations where neglected
More specifically operations between array-likes of `timedelta64` and `ndarray`s that can be cast into `timedelta64`.
For example:
ar_i = np.array([1])
seq_m = [np.timedelta64()]
ar_i > seq_m
Diffstat (limited to 'numpy/array_api/tests/test_creation_functions.py')
0 files changed, 0 insertions, 0 deletions