diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 24dacd6b48a42..066c7176fcc34 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -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" \ diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 98e689528744e..0a97a0d03c22a 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -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