Skip to content

PERF: Add type-hints in tzconversion.pyx #55241

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 2 commits into from
Sep 22, 2023
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
4 changes: 2 additions & 2 deletions pandas/_libs/tslibs/tzconversion.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ cdef str _render_tstamp(int64_t val, NPY_DATETIMEUNIT creso):


cdef _get_utc_bounds(
ndarray vals,
ndarray[int64_t] vals,
int64_t* tdata,
Py_ssize_t ntrans,
const int64_t[::1] deltas,
Expand All @@ -472,7 +472,7 @@ cdef _get_utc_bounds(
# result_a) or right of the DST transition (store in result_b)

cdef:
ndarray result_a, result_b
ndarray[int64_t] result_a, result_b
Py_ssize_t i, n = vals.size
int64_t val, v_left, v_right
Py_ssize_t isl, isr, pos_left, pos_right
Expand Down