8000 MAINT: avoid deprecation warning with Numpy 1.25+ · larray-project/larray@eb43a2a · GitHub
[go: up one dir, main page]

Skip to content

Commit eb43a2a

Browse files
committed
MAINT: avoid deprecation warning with Numpy 1.25+
1 parent 92dfa86 commit eb43a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/util/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def np_array_common_dtype(arrays) -> np.dtype:
743743
if any(mk != meta_kinds[0] for mk in meta_kinds[1:]):
744744
return np.dtype(object)
745745
elif meta_kinds[0] == 'numeric':
746-
return np.find_common_type(dtypes, [])
746+
return np.result_type(*dtypes)
747747
elif meta_kinds[0] == 'str':
748748
need_unicode = any(dt.kind == 'U' for dt in dtypes)
749749
# unicode are coded with 4 bytes

0 commit comments

Comments
 (0)
0