(str1: str, str2: str)
return _jaro_similarity(str1, str2)
Measure the similarity between two strings using Jaro (*not* Jaro-Winkler) distance,
    which searches for common characters while taking transpositions and string lengths
    into account.

    Args:
        str1
        str2

    Returns:
        Similarity between ``str1`` and ``str2`` in the interval [0.0, 1.0],
        where larger values correspond to more similar strings
Measure the similarity between two strings using Jaro (*not* Jaro-Winkler) distance,
    which searches for common characters while taking transpositions and string lengths
    into account.
Measure the similarity between two strings using Jaro ( * not * Jaro - Winkler ) distance which searches for common characters while taking transpositions and string lengths into account .
def jaro(str1: str, str2: str) -> float:
    """
    Measure the similarity between two strings using Jaro (*not* Jaro-Winkler) distance,
    which searches for common characters while taking transpositions and string lengths
    into account.

    Args:
        str1
        str2

    Returns:
        Similarity between ``str1`` and ``str2`` in the interval [0.0, 1.0],
        where larger values correspond to more similar strings
    """
    # NOTE: I usually try to avoid wrapping other packages' functionality in one-liners
    # but this is here for consistency with levenshtein and hamming,
    # which do extra work to get normalized similarity values
    shortcut = _shortcut(str1, str2)
    if shortcut:
        return shortcut

    return _jaro_similarity(str1, str2)
def jaro ( str1 : str , str2 : str ) -> float : # NOTE: I usually try to avoid wrapping other packages' functionality in one-liners # but this is here for consistency with levenshtein and hamming, # which do extra work to get normalized similarity values shortcut = _shortcut ( str1 , str2 ) if shortcut : return shortcut return _jaro_similarity ( str1 , str2 )