Skip to content
Prev Previous commit
Next Next commit
ruff
  • Loading branch information
LirongMa committed Oct 19, 2025
commit 5a4c70c19f77f48bb5d5381d80e482d37c6cebb7
9 changes: 9 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,15 @@ class TimezoneDtypeMismatchError(ValueError):

Use case / message:
"cannot supply both a tz and a timezone-naive dtype (i.e. datetime64[ns])"

Examples
--------
>>> from pandas.core.arrays import datetimes # doctest: +SKIP
>>> datetimes._validate_tz_from_dtype("datetime64[ns]", tz="UTC") # doctest: +SKIP
Traceback (most recent call last):
...
TimezoneDtypeMismatchError: cannot supply both a tz and a timezone-naive dtype
(i.e. datetime64[ns])
"""


Expand Down
Loading