8000 [CLN] cy cleanup, de-duplication by jbrockmendel · Pull Request #21826 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

[CLN] cy cleanup, de-duplication #21826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
strengthen typing
  • Loading branch information
jbrockmendel committed Jul 9, 2018
commit 13c4e8a01cccbd6024fb44e284c84f838cdb825d
4 changes: 3 additions & 1 deletion pandas/_libs/tslibs/timezones.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ cdef object get_utc_trans_times_from_dateutil_tz(object tz):
return new_trans


cpdef ndarray unbox_utcoffsets(object transinfo):
cpdef ndarray[int64_t, ndim=1] unbox_utcoffsets(object transinfo):
cdef:
Py_ssize_t i, sz
ndarray[int64_t] arr
Expand Down Expand Up @@ -216,6 +216,8 @@ cdef object get_dst_info(object tz):
"""
cache_key = tz_cache_key(tz)
if cache_key is None:
# e.g. pytz.FixedOffset, matplotlib.dates._UTC,
# psycopg2.tz.FixedOffsetTimezone
num = int(get_utcoffset(tz, None).total_seconds()) * 1000000000
return (np.array([NPY_NAT + 1], dtype=np.int64),
np.array([num], dtype=np.int64),
Expand Down
0