@@ -41,6 +41,7 @@ from cython cimport (
4141from pandas._config import using_string_dtype
4242
4343from pandas._libs.missing import check_na_tuples_nonequal
44+ from pandas.util._decorators import set_module
4445
4546import_datetime()
4647
@@ -154,6 +155,7 @@ def memory_usage_of_objects(arr: object[:]) -> int64_t:
154155# ----------------------------------------------------------------------
155156
156157
158+ @ set_module (" pandas.api.types" )
157159def is_scalar (val: object ) -> bool:
158160 """
159161 Return True if given object is scalar.
@@ -255,6 +257,7 @@ cdef int64_t get_itemsize(object val):
255257 return - 1
256258
257259
260+ @ set_module (" pandas.api.types" )
258261def is_iterator (obj: object ) -> bool:
259262 """
260263 Check if the object is an iterator.
@@ -1095,6 +1098,7 @@ def indices_fast(ndarray[intp_t, ndim=1] index, const int64_t[:] labels, list ke
10951098
10961099# core.common import for fast inference checks
10971100
1101+ @ set_module (" pandas.api.types" )
10981102def is_float (obj: object ) -> bool:
10991103 """
11001104 Return True if given object is float.
@@ -1128,6 +1132,7 @@ def is_float(obj: object) -> bool:
11281132 return util.is_float_object(obj )
11291133
11301134
1135+ @set_module("pandas.api.types")
11311136def is_integer(obj: object ) -> bool:
11321137 """
11331138 Return True if given object is integer.
@@ -1172,6 +1177,7 @@ def is_int_or_none(obj) -> bool:
11721177 return obj is None or util.is_integer_object(obj )
11731178
11741179
1180+ @set_module("pandas.api.types")
11751181def is_bool(obj: object ) -> bool:
11761182 """
11771183 Return True if given object is boolean.
@@ -1202,6 +1208,7 @@ def is_bool(obj: object) -> bool:
12021208 return util.is_bool_object(obj )
12031209
12041210
1211+ @set_module("pandas.api.types")
12051212def is_complex(obj: object ) -> bool:
12061213 """
12071214 Return True if given object is complex.
@@ -1237,6 +1244,7 @@ cpdef bint is_decimal(object obj):
12371244 return isinstance (obj, Decimal)
12381245
12391246
1247+ @ set_module (" pandas.api.types" )
12401248def is_list_like (obj: object , allow_sets: bool = True ) -> bool:
12411249 """
12421250 Check if the object is list-like.
@@ -1520,6 +1528,7 @@ cdef object _try_infer_map(object dtype):
15201528 return None
15211529
15221530
1531+ @ set_module (" pandas.api.types" )
15231532def infer_dtype (value: object , skipna: bool = True ) -> str:
15241533 """
15251534 Return a string label of the type of the elements in a list-like input.
0 commit comments