Skip to content

Commit c7ac505

Browse files
williamking1221William Joshua King
and
William Joshua King
authored
DOC: fix SA05 errors in docstrings for pandas.PeriodIndex.asfreq, arr… (#57408)
DOC: fix SA05 errors in docstrings for pandas.PeriodIndex.asfreq, arrays - ArrowStringArray, StringArray Co-authored-by: William Joshua King <[email protected]>
1 parent f1633c7 commit c7ac505

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -1155,9 +1155,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
11551155

11561156
MSG='Partially validate docstrings (SA05)' ; echo $MSG
11571157
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=SA05 --ignore_functions \
1158-
pandas.PeriodIndex.asfreq\
1159-
pandas.arrays.ArrowStringArray\
1160-
pandas.arrays.StringArray\
11611158
pandas.core.groupby.DataFrameGroupBy.first\
11621159
pandas.core.groupby.DataFrameGroupBy.last\
11631160
pandas.core.groupby.SeriesGroupBy.first\

pandas/core/arrays/string_.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class StringArray(BaseStringArray, NumpyExtensionArray): # type: ignore[misc]
315315
316316
See Also
317317
--------
318-
:func:`pandas.array`
318+
:func:`array`
319319
The recommended function for creating a StringArray.
320320
Series.str
321321
The string methods are available on Series backed by

pandas/core/arrays/string_arrow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ArrowStringArray(ObjectStringArrayMixin, ArrowExtensionArray, BaseStringAr
105105
106106
See Also
107107
--------
108-
:func:`pandas.array`
108+
:func:`array`
109109
The recommended function for creating a ArrowStringArray.
110110
Series.str
111111
The string methods are available on Series backed by

pandas/core/indexes/period.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _resolution_obj(self) -> Resolution:
185185

186186
@doc(
187187
PeriodArray.asfreq,
188-
other="pandas.arrays.PeriodArray",
188+
other="arrays.PeriodArray",
189189
other_name="PeriodArray",
190190
**_shared_doc_kwargs,
191191
)

0 commit comments

Comments
 (0)