Skip to content

Commit aaef028

Browse files
committed
feedback: use imported func directly
1 parent 19016fa commit aaef028

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/_libs/testing.pyx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ from pandas.core.dtypes.common import is_dtype_equal
1212
from pandas.core.dtypes.missing import array_equivalent, isna
1313

1414

15-
cdef bint is_comparable_as_real_number(obj):
16-
return is_real_number_object(obj)
17-
18-
1915
cdef bint isiterable(obj):
2016
return hasattr(obj, '__iter__')
2117

@@ -179,7 +175,7 @@ cpdef assert_almost_equal(a, b,
179175
# object comparison
180176
return True
181177

182-
if is_comparable_as_real_number(a) and is_comparable_as_real_number(b):
178+
if is_real_number_object(a) and is_real_number_object(b):
183179
if array_equivalent(a, b, strict_nan=True):
184180
# inf comparison
185181
return True

0 commit comments

Comments
 (0)