Skip to content

Commit df6f8a3

Browse files
committed
Fix is_bool
1 parent 80b6850 commit df6f8a3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
123123
-i "pandas.Timestamp.tzinfo GL08" \
124124
-i "pandas.Timestamp.year GL08" \
125125
-i "pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
126-
-i "pandas.api.types.is_bool PR01,SA01" \
127126
-i "pandas.api.types.is_categorical_dtype SA01" \
128127
-i "pandas.api.types.is_complex PR01,SA01" \
129128
-i "pandas.api.types.is_complex_dtype SA01" \

pandas/_libs/lib.pyx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,10 +1123,21 @@ def is_bool(obj: object) -> bool:
11231123
"""
11241124
Return True if given object is boolean.
11251125

1126+
Parameters
1127+
----------
1128+
obj : object
1129+
Object to check.
1130+
11261131
Returns
11271132
-------
11281133
bool
11291134

1135+
See Also
1136+
--------
1137+
api.types.is_scalar : Check if the input is a scalar.
1138+
api.types.is_integer : Check if the input is an integer.
1139+
api.types.is_float : Check if the input is a float.
1140+
11301141
Examples
11311142
--------
11321143
>>> pd.api.types.is_bool(True)

0 commit comments

Comments
 (0)