o
    Úó”i¶	  ã                   @   sÞ   d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ d dlm	Z	 d dlm
Z
 d d	lmZ d d
lmZ d dlmZ de	e
dfdedeeeeeeef f  dee dedee dee dedefdd„ZdS )é    )ÚAny)ÚDict)ÚOptional)ÚSequence)ÚUnion)ÚStyle)ÚDEFAULT_QUESTION_PREFIX)ÚDEFAULT_SELECTED_POINTER©Úselect)ÚChoice)ÚQuestionNÚmessageÚchoicesÚdefaultÚqmarkÚpointerÚstyleÚkwargsÚreturnc                 K   s"   t j | |||||fdddœ|¤ŽS )u  Ask the user to select one item from a list of choices using shortcuts.

    The user can only select one option.

    Example:
        >>> import questionary
        >>> questionary.rawselect(
        ...     "What do you want to do?",
        ...     choices=[
        ...         "Order a pizza",
        ...         "Make a reservation",
        ...         "Ask for opening hours"
        ...     ]).ask()
        ? What do you want to do? Order a pizza
        'Order a pizza'

    .. image:: ../images/rawselect.gif

    This is just a really basic example, the prompt can be customised using the
    parameters.

    Args:
        message: Question text.

        choices: Items shown in the selection, this can contain :class:`Choice` or
                 or :class:`Separator` objects or simple items as strings. Passing
                 :class:`Choice` objects, allows you to configure the item more
                 (e.g. preselecting it or disabling it).

        default: Default return value (single value).

        qmark: Question prefix displayed in front of the question.
               By default this is a ``?``.

        pointer: Pointer symbol in front of the currently highlighted element.
                 By default this is a ``Â»``.
                 Use ``None`` to disable it.

        style: A custom color and style for the question parts. You can
               configure colors as well as font types for different elements.

    Returns:
        :class:`Question`: Question instance, ready to be prompted (using ``.ask()``).
    TF)Úuse_shortcutsÚuse_arrow_keysr
   )r   r   r   r   r   r   r   © r   úQ/home/ubuntu/.local/lib/python3.10/site-packages/questionary/prompts/rawselect.pyÚ	rawselect   s   5úø	÷r   )Útypingr   r   r   r   r   Úprompt_toolkit.stylesr   Úquestionary.constantsr   r	   Úquestionary.promptsr   Úquestionary.prompts.commonr   Úquestionary.questionr   Ústrr   r   r   r   r   Ú<module>   s@    úÿþýüûúùø