Commit a345db6
* Add `noexcept` to `_utils` C-equiv functions
The functions in `_utils` are effectively straight C functions. In
Cython 0.x, these would have been treated as `noexcept` by default.
However in Cython 3.x all functions are treated as potentially raising
exceptions (including these). While that is a sensible default in
general, these functions still won't raise exceptions. So tidy things up
by adding `noexcept` to turn off the additional Cython checks emitted in
and around them.
* Swap order of `nogil` & `noexcept`
Fixes a Cython warning when using the opposite ordering.
* style: pre-commit fixes
---------
Co-authored-by: David Stansby <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4cd03c9 commit a345db6
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments