summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:35:21 +0200
committerStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:35:21 +0200
commit6aca5f6552225a097cb23c875f2b18de86ca7f39 (patch)
treecb958bff5812123c8bef503c7dc17da487f251b3
parent4ff6f470cf53a77a04dbec7f333a844ac3474a0c (diff)
downloadnumpy-6aca5f6552225a097cb23c875f2b18de86ca7f39.tar.gz
Also annotate the implementation of the kahan_sum() function, not just the declaration.
-rw-r--r--numpy/random/_common.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx
index 7b6f69303..c5e4e3297 100644
--- a/numpy/random/_common.pyx
+++ b/numpy/random/_common.pyx
@@ -171,7 +171,7 @@ cdef object prepare_ctypes(bitgen_t *bitgen):
ctypes.c_void_p(<uintptr_t>bitgen))
return _ctypes
-cdef double kahan_sum(double *darr, np.npy_intp n):
+cdef double kahan_sum(double *darr, np.npy_intp n) noexcept:
"""
Parameters
----------