Skip to content

Commit c76b174

Browse files
committed
precommit
1 parent 5a4c70c commit c76b174

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pandas/errors/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,12 +1040,18 @@ class InvalidComparison(Exception):
10401040

10411041
class TimezoneDtypeMismatchError(ValueError):
10421042
"""
1043-
Raised when both a separate tz and a tz-naive numpy datetime64 dtype are
1044-
supplied (e.g. tz is not None and dtype is datetime64[ns]).
1043+
Raised when a tz is supplied with a timezone-naive numpy datetime64 dtype.
10451044
10461045
Use case / message:
10471046
"cannot supply both a tz and a timezone-naive dtype (i.e. datetime64[ns])"
10481047
1048+
See Also
1049+
--------
1050+
pandas.core.dtypes.dtypes.DatetimeTZDtype : Datetime dtype with an associated
1051+
timezone.
1052+
pandas.core.arrays.datetimes._validate_tz_from_dtype : Validation helper that may
1053+
raise this error.
1054+
10491055
Examples
10501056
--------
10511057
>>> from pandas.core.arrays import datetimes # doctest: +SKIP

0 commit comments

Comments
 (0)