Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Nov 8, 2023
1 parent d6a8b43 commit 0f066cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/lib/_type_check_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import numpy._core.numeric as _nx
from numpy._core.numeric import asarray, asanyarray, isnan, zeros
from numpy._core import overrides, getlimits
from numpy._core import _multiarray_umath
from numpy._core._multiarray_umath import result_type as _result_type
from ._ufunclike_impl import isneginf, isposinf


Expand Down Expand Up @@ -669,7 +669,7 @@ def common_type(*arrays):
<class 'numpy.complex128'>
"""
common_type = _multiarray_umath.result_type(0., *[a.dtype for a in arrays]).type
common_type = _result_type(0., *[a.dtype for a in arrays]).type
if not issubclass(common_type, _nx.inexact):
raise TypeError("can't get common type for non-numeric array")
return common_type

0 comments on commit 0f066cc

Please sign in to comment.