diff --git a/rtree/core.py b/rtree/core.py index 6b9eb1a8..bd0579de 100644 --- a/rtree/core.py +++ b/rtree/core.py @@ -134,7 +134,7 @@ def free_error_msg_ptr(result, func, cargs): ctypes.c_uint64, ctypes.c_void_p, ctypes.c_void_p, - ctypes.c_void_p + ctypes.c_void_p, ] rt.Index_CreateWithArray.restype = ctypes.c_void_p rt.Index_CreateWithArray.errcheck = check_void # type: ignore diff --git a/rtree/index.py b/rtree/index.py index d11da29e..9ad6e0cc 100644 --- a/rtree/index.py +++ b/rtree/index.py @@ -291,8 +291,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: for item in stream: self.insert(*item) elif arrays: - raise NotImplementedError("Bulk insert only supported for " - "RTrees") + raise NotImplementedError("Bulk insert only supported for " "RTrees") def get_size(self) -> int: warnings.warn( @@ -1282,9 +1281,17 @@ def _create_idx_from_array(self, ibuf, minbuf, maxbuf): d_i_stri = minbuf.strides[0] // 8 d_j_stri = minbuf.strides[1] // 8 - return IndexArrayHandle(self.properties.handle, n, d, i_stri, - d_i_stri, d_j_stri, ibuf.ctypes.data, - minbuf.ctypes.data, maxbuf.ctypes.data) + return IndexArrayHandle( + self.properties.handle, + n, + d, + i_stri, + d_i_stri, + d_j_stri, + ibuf.ctypes.data, + minbuf.ctypes.data, + maxbuf.ctypes.data, + ) def leaves(self): leaf_node_count = ctypes.c_uint32()