diff --git a/extern/rapidfuzz-cpp b/extern/rapidfuzz-cpp index 571aab4..12daf90 160000 --- a/extern/rapidfuzz-cpp +++ b/extern/rapidfuzz-cpp @@ -1 +1 @@ -Subproject commit 571aab40023261003a9c7561947b01becf0cd828 +Subproject commit 12daf9086a3035e551e618940256dd8a90d796cb diff --git a/src/rapidfuzz/distance/metrics_cpp.pyi b/src/rapidfuzz/distance/metrics_cpp.pyi index 16696af..b232e5e 100644 --- a/src/rapidfuzz/distance/metrics_cpp.pyi +++ b/src/rapidfuzz/distance/metrics_cpp.pyi @@ -215,3 +215,63 @@ def osa_normalized_similarity( processor: Optional[Callable[..., _StringType]] = None, score_cutoff: Optional[float] = 0 ) -> float: ... +def jaro_distance( + s1: _S1, + s2: _S2, + *, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[int] = None +) -> float: ... +def jaro_normalized_distance( + s1: _S1, + s2: _S2, + *, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[float] = 0 +) -> float: ... +def jaro_similarity( + s1: _S1, + s2: _S2, + *, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[int] = None +) -> float: ... +def jaro_normalized_similarity( + s1: _S1, + s2: _S2, + *, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[float] = 0 +) -> float: ... +def jaro_winkler_distance( + s1: _S1, + s2: _S2, + *, + prefix_weight: float = 0.1, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[int] = None +) -> float: ... +def jaro_winkler_normalized_distance( + s1: _S1, + s2: _S2, + *, + prefix_weight: float = 0.1, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[float] = 0 +) -> float: ... +def jaro_winkler_similarity( + s1: _S1, + s2: _S2, + *, + prefix_weight: float = 0.1, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[int] = None +) -> float: ... +def jaro_winkler_normalized_similarity( + s1: _S1, + s2: _S2, + *, + prefix_weight: float = 0.1, + processor: Optional[Callable[..., _StringType]] = None, + score_cutoff: Optional[float] = 0 +) -> float: ...