diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2023-05-04 09:35:21 +0200 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2023-05-04 09:35:21 +0200 |
| commit | 6aca5f6552225a097cb23c875f2b18de86ca7f39 (patch) | |
| tree | cb958bff5812123c8bef503c7dc17da487f251b3 | |
| parent | 4ff6f470cf53a77a04dbec7f333a844ac3474a0c (diff) | |
| download | numpy-6aca5f6552225a097cb23c875f2b18de86ca7f39.tar.gz | |
Also annotate the implementation of the kahan_sum() function, not just the declaration.
| -rw-r--r-- | numpy/random/_common.pyx | 2 |
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 ---------- |
