@@ -283,11 +283,11 @@ cdef extern from "numpy/arrayobject.h":
283
283
cdef int type_num
284
284
285
285
@property
286
- cdef inline npy_intp itemsize(self ) nogil:
286
+ cdef inline npy_intp itemsize(self ) noexcept nogil:
287
287
return PyDataType_ELSIZE(self )
288
288
289
289
@property
290
- cdef inline npy_intp alignment(self ) nogil:
290
+ cdef inline npy_intp alignment(self ) noexcept nogil:
291
291
return PyDataType_ALIGNMENT(self )
292
292
293
293
# Use fields/names with care as they may be NULL. You must check
@@ -304,11 +304,11 @@ cdef extern from "numpy/arrayobject.h":
304
304
# valid (the pointer can be NULL). Most users should access
305
305
# this field via the inline helper method PyDataType_SHAPE.
306
306
@property
307
- cdef inline PyArray_ArrayDescr* subarray(self ) nogil:
307
+ cdef inline PyArray_ArrayDescr* subarray(self ) noexcept nogil:
308
308
return PyDataType_SUBARRAY(self )
309
309
310
310
@property
311
- cdef inline npy_uint64 flags(self ) nogil:
311
+ cdef inline npy_uint64 flags(self ) noexcept nogil:
312
312
""" The data types flags."""
313
313
return PyDataType_FLAGS(self )
314
314
@@ -320,32 +320,32 @@ cdef extern from "numpy/arrayobject.h":
320
320
ctypedef class numpy.broadcast [object PyArrayMultiIterObject, check_size ignore]:
321
321
322
322
@property
323
- cdef inline int numiter(self ) nogil:
323
+ cdef inline int numiter(self ) noexcept nogil:
324
324
""" The number of arrays that need to be broadcast to the same shape."""
325
325
return PyArray_MultiIter_NUMITER(self )
326
326
327
327
@property
328
- cdef inline npy_intp size(self ) nogil:
328
+ cdef inline npy_intp size(self ) noexcept nogil:
329
329
""" The total broadcasted size."""
330
330
return PyArray_MultiIter_SIZE(self )
331
331
332
332
@property
333
- cdef inline npy_intp index(self ) nogil:
333
+ cdef inline npy_intp index(self ) noexcept nogil:
334
334
""" The current (1-d) index into the broadcasted result."""
335
335
return PyArray_MultiIter_INDEX(self )
336
336
337
337
@property
338
- cdef inline int nd(self ) nogil:
338
+ cdef inline int nd(self ) noexcept nogil:
339
339
""" The number of dimensions in the broadcasted result."""
340
340
return PyArray_MultiIter_NDIM(self )
341
341
342
342
@property
343
- cdef inline npy_intp* dimensions(self ) nogil:
343
+ cdef inline npy_intp* dimensions(self ) noexcept nogil:
344
344
""" The shape of the broadcasted result."""
345
345
return PyArray_MultiIter_DIMS(self )
346
346
347
347
@property
348
- cdef inline void ** iters(self ) nogil:
348
+ cdef inline void ** iters(self ) noexcept nogil:
349
349
""" An array of iterator objects that holds the iterators for the arrays to be broadcast together.
350
350
On return, the iterators are adjusted for broadcasting."""
351
351
return PyArray_MultiIter_ITERS(self )
0 commit comments