Skip to content

Commit

Permalink
more changes to comply with formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Martinez committed Aug 2, 2023
1 parent 49cdd85 commit a58a992
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a58a992

Please sign in to comment.