8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92dfa86 commit eb43a2aCopy full SHA for eb43a2a
larray/util/misc.py
@@ -743,7 +743,7 @@ def np_array_common_dtype(arrays) -> np.dtype:
743
if any(mk != meta_kinds[0] for mk in meta_kinds[1:]):
744
return np.dtype(object)
745
elif meta_kinds[0] == 'numeric':
746
- return np.find_common_type(dtypes, [])
+ return np.result_type(*dtypes)
747
elif meta_kinds[0] == 'str':
748
need_unicode = any(dt.kind == 'U' for dt in dtypes)
749
# unicode are coded with 4 bytes
0 commit comments