summaryrefslogtreecommitdiff
path: root/numpy/lib/arraypad.py
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2021-01-22 00:44:58 +0100
committerGitHub <noreply@github.com>2021-01-21 16:44:58 -0700
commit33273e4ae770cac1ee0cb304ad5a0056bb59ad56 (patch)
tree546680d3c4778ad3bceed02e3fab73277ca46fe3 /numpy/lib/arraypad.py
parentb91f3c00ee113596acd3e508a593187258291f61 (diff)
downloadnumpy-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/lib/arraypad.py')
0 files changed, 0 insertions, 0 deletions