File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,11 @@ from pandas._libs.tslibs.util cimport (
38
38
39
39
cdef int64_t NPY_NAT = get_nat()
40
40
cdef tzinfo utc_stdlib = timezone.utc
41
- cdef object utc_pytz = pytz.UTC if pytz else None
41
+ cdef tzinfo utc_pytz = pytz.UTC if pytz else None
42
42
cdef tzinfo utc_dateutil_str = dateutil_gettz(" UTC" ) # NB: *not* the same as tzutc()
43
43
44
44
cdef tzinfo utc_zoneinfo = None
45
+ cdef type ZoneInfo = zoneinfo.ZoneInfo
45
46
46
47
47
48
# ----------------------------------------------------------------------
@@ -76,7 +77,7 @@ cpdef inline bint is_utc(tzinfo tz):
76
77
77
78
78
79
cdef bint is_zoneinfo(tzinfo tz):
79
- return isinstance (tz, zoneinfo. ZoneInfo)
80
+ return isinstance (tz, ZoneInfo)
80
81
81
82
82
83
cdef bint is_tzlocal(tzinfo tz):
You can’t perform that action at this time.
0 commit comments