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.
This commit is contained in:
Freek Dijkstra
2018-04-17 23:24:27 +02:00
committed by Jelle Zijlstra
parent aeb1aa4899
commit 55a3bad0f8

View File

@@ -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: