File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 55
66import codecs
77from contextlib import contextmanager
8+ from datetime import tzinfo
89import decimal
910from functools import partial
1011from io import StringIO
2728)
2829from unicodedata import east_asian_width
2930
30- from dateutil .tz .tz import tzutc
31- from dateutil .zoneinfo import tzfile
3231import numpy as np
3332
3433from pandas ._config .config import get_option , set_option
@@ -1552,9 +1551,7 @@ def _is_dates_only(
15521551
15531552
15541553def _format_datetime64 (
1555- x : Union [NaTType , Timestamp ],
1556- tz : Optional [Union [tzfile , tzutc ]] = None ,
1557- nat_rep : str = "NaT" ,
1554+ x : Union [NaTType , Timestamp ], tz : Optional [tzinfo ] = None , nat_rep : str = "NaT"
15581555) -> str :
15591556 if x is None or (is_scalar (x ) and isna (x )):
15601557 return nat_rep
You can’t perform that action at this time.
0 commit comments