Skip to content

Commit

Permalink
DOC: Enforce Numpy Docstring Validation for pandas.DatetimeTZDtype.un…
Browse files Browse the repository at this point in the history
…it (#58387)

* DOC: add SA01 to DatetimeTZDtype.tz

* DOC: remove SA01 of DatetimeTZDtype.unit
  • Loading branch information
tuhinsharma121 committed Apr 23, 2024
1 parent 9d5c88e commit 8aa4f0e
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 @@ -116,7 +116,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeIndex.tz_convert RT03" \
-i "pandas.DatetimeTZDtype SA01" \
-i "pandas.DatetimeTZDtype.tz SA01" \
-i "pandas.DatetimeTZDtype.unit SA01" \
-i "pandas.Grouper PR02" \
-i "pandas.Index PR07" \
-i "pandas.Index.T 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 @@ -793,6 +793,10 @@ def unit(self) -> str_type:
"""
The precision of the datetime data.
See Also
--------
DatetimeTZDtype.tz : Retrieves the timezone.
Examples
--------
>>> from zoneinfo import ZoneInfo
Expand Down

0 comments on commit 8aa4f0e

Please sign in to comment.