Skip to content

Commit 2cf879d

Browse files
authored
DOC: fix EX02 docstring errors for three docstrings (#51550)
* updated some dtypes docstrings * deleted comment
1 parent fada873 commit 2cf879d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
574574
pandas.api.types.is_datetime64_ns_dtype \
575575
pandas.api.types.is_datetime64tz_dtype \
576576
pandas.api.types.is_integer_dtype \
577-
pandas.api.types.is_interval_dtype \
578-
pandas.api.types.is_period_dtype \
579-
pandas.api.types.is_signed_integer_dtype \
580577
pandas.api.types.is_sparse \
581578
pandas.api.types.is_string_dtype \
582579
pandas.api.types.is_unsigned_integer_dtype \

pandas/core/dtypes/common.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,10 @@ def is_period_dtype(arr_or_dtype) -> bool:
398398
399399
Examples
400400
--------
401+
>>> from pandas.core.dtypes.common import is_period_dtype
401402
>>> is_period_dtype(object)
402403
False
403-
>>> is_period_dtype(PeriodDtype(freq="D"))
404+
>>> is_period_dtype(pd.PeriodDtype(freq="D"))
404405
True
405406
>>> is_period_dtype([1, 2, 3])
406407
False
@@ -434,9 +435,10 @@ def is_interval_dtype(arr_or_dtype) -> bool:
434435
435436
Examples
436437
--------
438+
>>> from pandas.core.dtypes.common import is_interval_dtype
437439
>>> is_interval_dtype(object)
438440
False
439-
>>> is_interval_dtype(IntervalDtype())
441+
>>> is_interval_dtype(pd.IntervalDtype())
440442
True
441443
>>> is_interval_dtype([1, 2, 3])
442444
False
@@ -727,6 +729,7 @@ def is_signed_integer_dtype(arr_or_dtype) -> bool:
727729
728730
Examples
729731
--------
732+
>>> from pandas.core.dtypes.common import is_signed_integer_dtype
730733
>>> is_signed_integer_dtype(str)
731734
False
732735
>>> is_signed_integer_dtype(int)

0 commit comments

Comments
 (0)