Skip to content

Commit e613018

Browse files
add overload to difflib.get_close_matches
Fixes #3906. Fixes #2067.
1 parent 8b3e27d commit e613018

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/2and3/difflib.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class SequenceMatcher(Generic[_T]):
3838
def quick_ratio(self) -> float: ...
3939
def real_quick_ratio(self) -> float: ...
4040

41+
@overload
42+
def get_close_matches(word: str, possibilities: Iterable[str],
43+
n: int = ..., cutoff: float = ...) -> List[str]: ...
44+
@overload
4145
def get_close_matches(word: Sequence[_T], possibilities: Iterable[Sequence[_T]],
4246
n: int = ..., cutoff: float = ...) -> List[Sequence[_T]]: ...
4347

0 commit comments

Comments
 (0)