@@ -25,9 +25,9 @@ cdef class IntervalTree(IntervalMixin):
25
25
26
26
we are emulating the IndexEngine interface
27
27
"""
28
- cdef:
29
- readonly object left, right, root, dtype
30
- readonly str closed
28
+ cdef readonly :
29
+ object left, right, root, dtype
30
+ str closed
31
31
object _is_overlapping, _left_sorter, _right_sorter
32
32
33
33
def __init__(self, left, right, closed='right', leaf_size=100):
@@ -259,14 +259,14 @@ cdef class {{dtype_title}}Closed{{closed_title}}IntervalNode:
259
259
Categorizes intervals by those that fall to the left, those that fall to
260
260
the right, and those that overlap with the pivot.
261
261
"""
262
- cdef:
262
+ cdef readonly :
263
263
{{dtype_title}}Closed{{closed_title}}IntervalNode left_node, right_node
264
264
{{dtype}}_t[:] center_left_values, center_right_values, left, right
265
265
int64_t[:] center_left_indices, center_right_indices, indices
266
266
{{dtype}}_t min_left, max_right
267
- readonly {{dtype}}_t pivot
268
- readonly int64_t n_elements, n_center, leaf_size
269
- readonly bint is_leaf_node
267
+ {{dtype}}_t pivot
268
+ int64_t n_elements, n_center, leaf_size
269
+ bint is_leaf_node
270
270
271
271
def __init__(self,
272
272
ndarray[{{dtype}}_t, ndim=1] left,
0 commit comments