Skip to content

Commit 29cde03

Browse files
committed
STYLE: remove use in pd.api.dtype in test_floating.py (pandas-dev#39203)
1 parent a4c1485 commit 29cde03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/extension/test_floating.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import pandas._testing as tm
2323
from pandas.core.arrays.floating import Float32Dtype, Float64Dtype
2424
from pandas.tests.extension import base
25+
from pandas.api.types import is_float_dtype
2526

2627

2728
def make_data():
@@ -101,7 +102,7 @@ def _check_op(self, s, op, other, op_name, exc=NotImplementedError):
101102
if (
102103
hasattr(other, "dtype")
103104
and not is_extension_array_dtype(other.dtype)
104-
and pd.api.types.is_float_dtype(other.dtype)
105+
and is_float_dtype(other.dtype)
105106
):
106107
# other is np.float64 and would therefore always result in
107108
# upcasting, so keeping other as same numpy_dtype

0 commit comments

Comments
 (0)