From 86b4c7d042a0e596b44b41b22bd63c10b99e2716 Mon Sep 17 00:00:00 2001 From: LyubomirT Date: Sat, 2 Dec 2023 12:17:12 +0200 Subject: [PATCH] Remove the support of inputting multiple strings to `get_similar`. --- lesp/autocorrect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesp/autocorrect.py b/lesp/autocorrect.py index d2b6ae6..1d2d070 100644 --- a/lesp/autocorrect.py +++ b/lesp/autocorrect.py @@ -88,7 +88,7 @@ def get_similar_worker(args: tuple) -> List[str]: def is_correct(self, word: str) -> bool: return word.lower() in self.wordlist - def get_similar(self, word: str, similarity_rate: float, chunks: int = 4, upto: int = 3, use_cache: bool = False, set_cache: bool = False) -> Optional[List[str]]: + def get_similar(self, word: str, similarity_rate: float, chunks: int = 4, upto: int = 3, use_cache: bool = False, set_cache: bool = False): if upto < 1: raise ValueError("Can only return 1 or more similar words.") if chunks < 1: