diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-01 12:36:17 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-01 12:36:17 +0100 |
commit | e21a20592454e81dc686c49304768be854f55eaf (patch) | |
tree | 700658fab7bb293388df74cd45cc5b1c6f147b82 /numpy/array_api/_statistical_functions.py | |
parent | ea2f2d65b0df09a04681148930806800909d6473 (diff) | |
download | numpy-e21a20592454e81dc686c49304768be854f55eaf.tar.gz |
ENH: Ensure UFuncTypeError is raised when promotion fails
If promotion fails internally, this effectively means that there is
no loop available for the given ufunc, so chain that error.
We only do this for `InvalidPromotion` since we assume other errors
may well be critical.
Diffstat (limited to 'numpy/array_api/_statistical_functions.py')
0 files changed, 0 insertions, 0 deletions