From 7b66bd54462a22326476d07e13056f8e4a7c8fee Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Sun, 2 Oct 2022 07:04:57 +0200 Subject: [PATCH] add missing type hints --- extern/rapidfuzz-cpp | 2 +- src/rapidfuzz/distance/metrics_cpp.pyi | 60 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) 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: ...