mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
committed by
Jelle Zijlstra
parent
aeb1aa4899
commit
55a3bad0f8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user