Skip to content

Commit

Permalink
mark function as noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jun 2, 2023
1 parent 887bc70 commit 2db5110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rapidfuzz/distance/metrics_cpp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def levenshtein_opcodes(s1, s2, *, processor=None, score_hint=None):
ops.editops = levenshtein_editops_func(s1_proc.string, s2_proc.string, c_score_hint)
return ops.as_opcodes()

cdef void KwargsDeinit(RF_Kwargs* self):
cdef void KwargsDeinit(RF_Kwargs* self) noexcept:
free(<void*>self.context)

cdef bool LevenshteinKwargsInit(RF_Kwargs* self, dict kwargs) except False:
Expand Down

0 comments on commit 2db5110

Please sign in to comment.