Skip to content

Commit ad42520

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.IntervalDtype.subtype (#58522)
* DOC: add SA01 for pandas.IntervalDtype.subtype * DOC: remove SA01 for pandas.IntervalDtype.subtype
1 parent b2cde72 commit ad42520

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9191
-i "pandas.Interval.left SA01" \
9292
-i "pandas.Interval.mid SA01" \
9393
-i "pandas.Interval.right SA01" \
94-
-i "pandas.IntervalDtype.subtype SA01" \
9594
-i "pandas.IntervalIndex.closed SA01" \
9695
-i "pandas.IntervalIndex.contains RT03" \
9796
-i "pandas.IntervalIndex.get_loc PR07,RT03,SA01" \

pandas/core/dtypes/dtypes.py

+4
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,10 @@ def subtype(self):
13111311
"""
13121312
The dtype of the Interval bounds.
13131313
1314+
See Also
1315+
--------
1316+
IntervalDtype: An ExtensionDtype for Interval data.
1317+
13141318
Examples
13151319
--------
13161320
>>> dtype = pd.IntervalDtype(subtype="int64", closed="both")

0 commit comments

Comments
 (0)