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.
1 parent 65b2931 commit b3c6617Copy full SHA for b3c6617
pandas/tests/dtypes/test_dtypes.py
@@ -17,6 +17,7 @@
17
is_dtype_equal,
18
is_interval_dtype,
19
is_period_dtype,
20
+ is_signed_integer_dtype,
21
is_string_dtype,
22
)
23
from pandas.core.dtypes.dtypes import (
@@ -1150,6 +1151,13 @@ def test_is_bool_dtype(dtype, expected):
1150
1151
assert result is expected
1152
1153
1154
+def test_is_signed_integer_dtype_with_abstract_types():
1155
+ # GH 62018
1156
+ assert is_signed_integer_dtype(np.floating) is False
1157
+ assert is_signed_integer_dtype(np.inexact) is False
1158
+ assert is_signed_integer_dtype(np.generic) is False
1159
+
1160
1161
def test_is_bool_dtype_sparse():
1162
result = is_bool_dtype(Series(SparseArray([True, False])))
1163
assert result is True
0 commit comments