From 84fa38f265f1eaab612b0fb279add126f4c1132c Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 13:12:56 +0530 Subject: [PATCH 1/2] DOC: add SA01 for pandas.IntervalDtype.subtype --- pandas/core/dtypes/dtypes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index e52cbff451700..718a694a277fd 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -1304,6 +1304,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") From dc2f6c40462f34ce90e8b28b1d9bc6d02392b37d Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 13:13:19 +0530 Subject: [PATCH 2/2] DOC: remove SA01 for pandas.IntervalDtype.subtype --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 996f361e9440f..eaf8cd9edeb6f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -92,7 +92,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Interval.mid SA01" \ -i "pandas.Interval.right SA01" \ -i "pandas.IntervalDtype PR01,SA01" \ - -i "pandas.IntervalDtype.subtype SA01" \ -i "pandas.IntervalIndex.closed SA01" \ -i "pandas.IntervalIndex.contains RT03" \ -i "pandas.IntervalIndex.get_loc PR07,RT03,SA01" \