Skip to content

Commit 5a4c70c

Browse files
committed
ruff
1 parent 8ca0393 commit 5a4c70c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/errors/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,15 @@ class TimezoneDtypeMismatchError(ValueError):
10451045
10461046
Use case / message:
10471047
"cannot supply both a tz and a timezone-naive dtype (i.e. datetime64[ns])"
1048+
1049+
Examples
1050+
--------
1051+
>>> from pandas.core.arrays import datetimes # doctest: +SKIP
1052+
>>> datetimes._validate_tz_from_dtype("datetime64[ns]", tz="UTC") # doctest: +SKIP
1053+
Traceback (most recent call last):
1054+
...
1055+
TimezoneDtypeMismatchError: cannot supply both a tz and a timezone-naive dtype
1056+
(i.e. datetime64[ns])
10481057
"""
10491058

10501059

0 commit comments

Comments
 (0)