From 858ab7588e4c56f62b04b5731c31c78bd3e5f6a8 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sun, 15 Sep 2024 10:55:04 +0530 Subject: [PATCH] DOC: fix SA01 for pandas.api.types.is_array_like --- ci/code_checks.sh | 1 - pandas/core/dtypes/common.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 73b389e427648..a30db7ab62047 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -114,7 +114,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.tzinfo GL08" \ -i "pandas.Timestamp.year GL08" \ -i "pandas.api.types.is_dict_like PR07,SA01" \ - -i "pandas.api.types.is_extension_array_dtype SA01" \ -i "pandas.api.types.is_file_like PR07,SA01" \ -i "pandas.api.types.is_float PR01,SA01" \ -i "pandas.api.types.is_float_dtype SA01" \ diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 16f6bd396fe93..de38395cecad3 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1401,6 +1401,10 @@ def is_extension_array_dtype(arr_or_dtype) -> bool: bool Whether the `arr_or_dtype` is an extension array type. + See Also + -------- + api.extensions.ExtensionArray : Abstract base class for pandas extension arrays. + Notes ----- This checks whether an object implements the pandas extension