Skip to content

Commit 6d3f4e6

Browse files
authored
Revert mixup
1 parent 81e8987 commit 6d3f4e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/_libs/tslibs/timezones.pyx

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from cython import Py_ssize_t
44

5-
from cpython.datetime cimport tzinfo
6-
75
# dateutil compat
86
from dateutil.tz import (
97
tzutc as _dateutil_tzutc,
@@ -37,12 +35,12 @@ cdef inline bint is_tzlocal(object tz):
3735
return isinstance(tz, _dateutil_tzlocal)
3836

3937

40-
cdef inline bint treat_tz_as_pytz(tzinfo tz):
38+
cdef inline bint treat_tz_as_pytz(object tz):
4139
return (hasattr(tz, '_utc_transition_times') and
4240
hasattr(tz, '_transition_info'))
4341

4442

45-
cdef inline bint treat_tz_as_dateutil(tzinfo tz):
43+
cdef inline bint treat_tz_as_dateutil(object tz):
4644
return hasattr(tz, '_trans_list') and hasattr(tz, '_trans_idx')
4745

4846

0 commit comments

Comments
 (0)