Skip to content

Commit

Permalink
Update wrt main
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <[email protected]>
  • Loading branch information
adam2392 committed Aug 8, 2024
1 parent 971c41d commit b201fcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sklearn/tree/_tree.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ cdef class BaseTree:
float64_t weighted_n_node_samples,
uint8_t missing_go_to_left
) except -1 nogil
cdef intp_t _resize(self, intp_t capacity) except -1 nogil
cdef intp_t _resize_c(self, intp_t capacity=*) except -1 nogil
cdef int _resize(self, intp_t capacity) except -1 nogil
cdef int _resize_c(self, intp_t capacity=*) except -1 nogil

cdef intp_t _update_node(
self,
Expand Down
4 changes: 2 additions & 2 deletions sklearn/tree/_tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ cdef class BaseTree:
Downstream classes must implement methods to actually traverse the tree.
"""
cdef intp_t _resize(
cdef int _resize(
self,
intp_t capacity
) except -1 nogil:
Expand All @@ -999,7 +999,7 @@ cdef class BaseTree:
with gil:
raise MemoryError()

cdef intp_t _resize_c(self, intp_t capacity=INTPTR_MAX) except -1 nogil:
cdef int _resize_c(self, intp_t capacity=INTPTR_MAX) except -1 nogil:
"""Guts of _resize
Returns -1 in case of failure to allocate memory (and raise MemoryError)
Expand Down

0 comments on commit b201fcb

Please sign in to comment.