Skip to content

Commit b452a51

Browse files
tuhinsharma121pmhatre1
authored andcommitted
DOC: Enforce Numpy Docstring Validation for pandas.DatetimeTZDtype.unit (pandas-dev#58387)
* DOC: add SA01 to DatetimeTZDtype.tz * DOC: remove SA01 of DatetimeTZDtype.unit
1 parent 1657a13 commit b452a51

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
116116
-i "pandas.DatetimeIndex.tz_convert RT03" \
117117
-i "pandas.DatetimeTZDtype SA01" \
118118
-i "pandas.DatetimeTZDtype.tz SA01" \
119-
-i "pandas.DatetimeTZDtype.unit SA01" \
120119
-i "pandas.Grouper PR02" \
121120
-i "pandas.Index PR07" \
122121
-i "pandas.Index.T SA01" \

pandas/core/dtypes/dtypes.py

+4
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,10 @@ def unit(self) -> str_type:
793793
"""
794794
The precision of the datetime data.
795795
796+
See Also
797+
--------
798+
DatetimeTZDtype.tz : Retrieves the timezone.
799+
796800
Examples
797801
--------
798802
>>> from zoneinfo import ZoneInfo

0 commit comments

Comments
 (0)