diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-01-11 12:51:45 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-01-11 12:55:09 -0600 |
commit | c9e8bc8ac5d804d0acba1f6e81a4bb9c32984d84 (patch) | |
tree | 78704cc3407524f5321292ce8f5a1fa528c576eb /numpy/array_api/_manipulation_functions.py | |
parent | a190258d4e90f2a17a9469e5dd9fb5f4b045aa90 (diff) | |
download | numpy-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