Skip to content

Commit

Permalink
DOC: Enforce Numpy Docstring Validation for pandas.IntervalDtype.subt…
Browse files Browse the repository at this point in the history
…ype (#58522)

* DOC: add SA01 for pandas.IntervalDtype.subtype

* DOC: remove SA01 for pandas.IntervalDtype.subtype
  • Loading branch information
tuhinsharma121 committed May 2, 2024
1 parent b2cde72 commit ad42520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Interval.left SA01" \
-i "pandas.Interval.mid SA01" \
-i "pandas.Interval.right SA01" \
-i "pandas.IntervalDtype.subtype SA01" \
-i "pandas.IntervalIndex.closed SA01" \
-i "pandas.IntervalIndex.contains RT03" \
-i "pandas.IntervalIndex.get_loc PR07,RT03,SA01" \
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/dtypes/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,10 @@ def subtype(self):
"""
The dtype of the Interval bounds.
See Also
--------
IntervalDtype: An ExtensionDtype for Interval data.
Examples
--------
>>> dtype = pd.IntervalDtype(subtype="int64", closed="both")
Expand Down

0 comments on commit ad42520

Please sign in to comment.