Skip to content

Commit e82b5dc

Browse files
jbrockmendelclaude
andauthored
CLN: point cython3 TODOs at upstream cython#2485 (#65387)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d7ddc6d commit e82b5dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎pandas/_libs/hashtable_func_helper.pxi.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ cpdef ismember(ndarray[htfunc_t] arr, ndarray[htfunc_t] values):
450450
@cython.wraparound(False)
451451
@cython.boundscheck(False)
452452
def mode(ndarray[htfunc_t] values, bint dropna, const uint8_t[:] mask=None):
453-
# TODO(cython3): use const htfunct_t[:]
453+
# TODO(cython#2485): once possible, use const htfunc_t[:]
454454

455455
cdef:
456456
ndarray[htfunc_t] keys

‎pandas/_libs/tslibs/period.pyx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ cdef int64_t _extract_ordinal(object item, PeriodDtypeBase dtype) except? -1:
16171617
@cython.wraparound(False)
16181618
@cython.boundscheck(False)
16191619
def extract_period_unit(ndarray[object] values) -> PeriodDtypeBase:
1620-
# TODO: Change type to const object[:] when Cython supports that.
1620+
# TODO(cython#2485): once possible, use const object[:]
16211621

16221622
cdef:
16231623
Py_ssize_t i, n = len(values)

0 commit comments

Comments
 (0)