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: