summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-12-01 12:36:17 +0100
committerSebastian Berg <sebastianb@nvidia.com>2022-12-01 12:36:17 +0100
commite21a20592454e81dc686c49304768be854f55eaf (patch)
tree700658fab7bb293388df74cd45cc5b1c6f147b82 /numpy/array_api/_creation_functions.py
parentea2f2d65b0df09a04681148930806800909d6473 (diff)
downloadnumpy-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/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions