diff --git a/cmd2/utils.py b/cmd2/utils.py index 3b6e2208..fb06cc31 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -1275,7 +1275,7 @@ def similarity_function(s1: str, s2: str) -> float: def suggest_similar( - requested_command: str, options: Iterable[str], similarity_function_to_use: Optional[Callable[[str, str], float]] = None + requested_command: str, options: Iterable[str], similarity_function_to_use: Optional[Callable[[str, str], float]] = None ) -> Optional[str]: """ Given a requested command and an iterable of possible options @@ -1285,7 +1285,6 @@ def suggest_similar( :param options: The list of avaiable commands to search for the most similar :param similarity_function_to_use: An optional callable to use to compare commands :returns The most similar command or None if no one is similar - """ proposed_command = None best_simil = MIN_SIMIL_TO_CONSIDER