diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9f253e61b2ffd..6bd7287fab40b 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -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" \ diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 45054c04b955e..dc7e9afac331b 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -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")