Skip to content

Commit

Permalink
Update get_utc declarations (#55507)
Browse files Browse the repository at this point in the history
* updated parameter definitions

* revert memview -> ndarray declaration
  • Loading branch information
WillAyd authored Oct 13, 2023
1 parent 579b826 commit c1d3604
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pandas/_libs/tslibs/tzconversion.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,11 @@ timedelta-like}
return result.base # .base to get underlying ndarray


cdef Py_ssize_t bisect_right_i8(int64_t *data, int64_t val, Py_ssize_t n):
cdef Py_ssize_t bisect_right_i8(
const int64_t *data,
int64_t val,
Py_ssize_t n
) noexcept:
# Caller is responsible for checking n > 0
# This looks very similar to local_search_right in the ndarray.searchsorted
# implementation.
Expand Down Expand Up @@ -463,7 +467,7 @@ cdef str _render_tstamp(int64_t val, NPY_DATETIMEUNIT creso):

cdef _get_utc_bounds(
ndarray[int64_t] vals,
int64_t* tdata,
const int64_t* tdata,
Py_ssize_t ntrans,
const int64_t[::1] deltas,
NPY_DATETIMEUNIT creso,
Expand Down

0 comments on commit c1d3604

Please sign in to comment.