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.
2 parents 9ee571d + 0cc7d38 commit 254bafaCopy full SHA for 254bafa
1 file changed
numpy/testing/_private/utils.py
@@ -743,7 +743,7 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, header='',
743
ox, oy = x, y
744
745
def isnumber(x):
746
- return x.dtype.char in '?bhilqpBHILQPefdgFDG'
+ return type(x.dtype)._is_numeric
747
748
def istime(x):
749
return x.dtype.char in "Mm"
0 commit comments