summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-06-09 12:34:20 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-06-15 11:42:02 -0700
commit983277185ea595880697e9289796c527be28aab3 (patch)
treeb493cf9bfa819f963f1427208eae1a787f247af2 /numpy/array_api/_creation_functions.py
parentc66e6314f041653e2b289c03a09333ba5b4fd45a (diff)
downloadnumpy-983277185ea595880697e9289796c527be28aab3.tar.gz
BUG: Fix broken weak promotion (including legacy ones) and make it more robust
It seems that the (weird and probably non-existing in practice) case of uint8 vs. int8 promotion when the input is a single integer was broken at some point and this fixes it again. This is only really relevant for rational, which defines only a very selective number of integer promotions. This fixes up the previous chunk that relaxes promotion fallbacks a lot for legacy dtypes.
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions