From a58a992c4ee089c6c8a6f63a680abaf15405496e Mon Sep 17 00:00:00 2001 From: Federico Martinez Date: Wed, 2 Aug 2023 11:42:22 -0300 Subject: [PATCH] more changes to comply with formatting --- cmd2/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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