Ë
    ÔAHj‡  ã                  ó8   — d dl mZ d dlmZ d dlmZ dd„Zdd„Zy)	é    )Úannotations©Úget_close_matches)ÚSequencec                ó0   — t        | |d¬«      }|sdS |d   S )aŸ  
    Returns a close match of `word` amongst `possible_words`.

    Args:
        word: The word we want to find a close match for
        possible_words: The words amongst which we want to find a close match

    Returns:
        The closest match amongst the `possible_words`. Returns `None` if no close matches could be found.

    Example: returns "red" for word "redu" and possible words ("yellow", "red")
    é   ©ÚnNr   r   )ÚwordÚpossible_wordsÚpossible_matchess      úK/root/tools/cai/cai_env/lib/python3.12/site-packages/textual/suggestions.pyÚget_suggestionr      s&   € ô )¨¨~ÀÔCÐÙ'ˆ4Ð@Ð-=¸aÑ-@Ð@ó    c                ó   — t        | ||¬«      S )a  
    Returns a list of up to `count` matches of `word` amongst `possible_words`.

    Args:
        word: The word we want to find a close match for
        possible_words: The words amongst which we want to find close matches

    Returns:
        The closest matches amongst the `possible_words`, from the closest to the least close.
            Returns an empty list if no close matches could be found.

    Example: returns ["yellow", "ellow"] for word "yllow" and possible words ("yellow", "red", "ellow")
    r	   r   )r   r   Úcounts      r   Úget_suggestionsr      s   € ô ˜T >°UÔ;Ð;r   N)r   Ústrr   úSequence[str]Úreturnz
str | None)r   r   r   r   r   Úintr   z	list[str])Ú
__future__r   Údifflibr   Útypingr   r   r   © r   r   ú<module>r      s   ðÝ "å %Ý óAô"<r   