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 5
5
6
6
import codecs
7
7
from contextlib import contextmanager
8
+ from datetime import tzinfo
8
9
import decimal
9
10
from functools import partial
10
11
from io import StringIO
27
28
)
28
29
from unicodedata import east_asian_width
29
30
30
- from dateutil .tz .tz import tzutc
31
- from dateutil .zoneinfo import tzfile
32
31
import numpy as np
33
32
34
33
from pandas ._config .config import get_option , set_option
@@ -1552,9 +1551,7 @@ def _is_dates_only(
1552
1551
1553
1552
1554
1553
def _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"
1558
1555
) -> str :
1559
1556
if x is None or (is_scalar (x ) and isna (x )):
1560
1557
return nat_rep
You can’t perform that action at this time.
0 commit comments