We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e8987 commit 6d3f4e6Copy full SHA for 6d3f4e6
pandas/_libs/tslibs/timezones.pyx
@@ -2,8 +2,6 @@
2
3
from cython import Py_ssize_t
4
5
-from cpython.datetime cimport tzinfo
6
-
7
# dateutil compat
8
from dateutil.tz import (
9
tzutc as _dateutil_tzutc,
@@ -37,12 +35,12 @@ cdef inline bint is_tzlocal(object tz):
37
35
return isinstance(tz, _dateutil_tzlocal)
38
36
39
40
-cdef inline bint treat_tz_as_pytz(tzinfo tz):
+cdef inline bint treat_tz_as_pytz(object tz):
41
return (hasattr(tz, '_utc_transition_times') and
42
hasattr(tz, '_transition_info'))
43
44
45
-cdef inline bint treat_tz_as_dateutil(tzinfo tz):
+cdef inline bint treat_tz_as_dateutil(object tz):
46
return hasattr(tz, '_trans_list') and hasattr(tz, '_trans_idx')
47
48
0 commit comments