Skip to content

Commit 6690eaa

Browse files
committed
Address comments
1 parent 3be94bf commit 6690eaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pandas/_libs/tslibs/timezones.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ from pandas._libs.tslibs.util cimport (
3838

3939
cdef int64_t NPY_NAT = get_nat()
4040
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
4242
cdef tzinfo utc_dateutil_str = dateutil_gettz("UTC") # NB: *not* the same as tzutc()
4343

4444
cdef tzinfo utc_zoneinfo = None
45+
cdef type ZoneInfo = zoneinfo.ZoneInfo
4546

4647

4748
# ----------------------------------------------------------------------
@@ -76,7 +77,7 @@ cpdef inline bint is_utc(tzinfo tz):
7677

7778

7879
cdef bint is_zoneinfo(tzinfo tz):
79-
return isinstance(tz, zoneinfo.ZoneInfo)
80+
return isinstance(tz, ZoneInfo)
8081

8182

8283
cdef bint is_tzlocal(tzinfo tz):
Binary file not shown.

0 commit comments

Comments
 (0)