From 55a3bad0f899b3a4eb4603481c7d61c880d58d35 Mon Sep 17 00:00:00 2001 From: Freek Dijkstra Date: Tue, 17 Apr 2018 23:24:27 +0200 Subject: [PATCH] fix signature for difflib.get_close_matches (#2064) Fixes #2063. The second argument to difflib.get_close_matches not only accepts a List, but any Iterator. --- stdlib/2and3/difflib.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/difflib.pyi b/stdlib/2and3/difflib.pyi index 4701e32a2..f62864fc2 100644 --- a/stdlib/2and3/difflib.pyi +++ b/stdlib/2and3/difflib.pyi @@ -33,7 +33,7 @@ class SequenceMatcher(Generic[_T]): def quick_ratio(self) -> float: ... def real_quick_ratio(self) -> float: ... -def get_close_matches(word: Sequence[_T], possibilities: List[Sequence[_T]], +def get_close_matches(word: Sequence[_T], possibilities: Iterable[Sequence[_T]], n: int = ..., cutoff: float = ...) -> List[Sequence[_T]]: ... class Differ: