summaryrefslogtreecommitdiff
path: root/numpy/array_api/_manipulation_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-01-11 12:51:45 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-01-11 12:55:09 -0600
commitc9e8bc8ac5d804d0acba1f6e81a4bb9c32984d84 (patch)
tree78704cc3407524f5321292ce8f5a1fa528c576eb /numpy/array_api/_manipulation_functions.py
parenta190258d4e90f2a17a9469e5dd9fb5f4b045aa90 (diff)
downloadnumpy-c9e8bc8ac5d804d0acba1f6e81a4bb9c32984d84.tar.gz
BUG: Promotion between strings and objects was assymetric
After an unrelated fix, the logic for string and object promotion was incorrect briefly, this fixes it to be correct (symmetric). Before, string and unicode would return that `string.__common_dtype(object)` is in fact `string`, which is of course incorrect. (since `object.__common_dtype__(other)` always returns `object` this depended on the order, and the NumPy tests apparently did only test the opposite direction (or nothing).
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions