o
    j(                     @  s   U d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	 ddl
mZmZmZmZ ded	< d
ed< dddZdddZdddZg dZdS )a  
prompt_toolkit
==============

Author: Jonathan Slenders

Description: prompt_toolkit is a Library for building powerful interactive
             command lines in Python.  It can be a replacement for GNU
             Readline, but it can be much more than that.

See the examples directory to learn about the usage.

Probably, to get started, you might also want to have a look at
`prompt_toolkit.shortcuts.prompt`.
    )annotations)Any   )Application)ANSIHTML)PromptSessionchoiceprint_formatted_textpromptstr__version__ztuple[int, int, int]VERSIONreturnNonec                  C  sd   ddl } ddlm} d}|d}| ||sJ |add |dD }|d |d	 |d
 fadS )z|
    Load the package version from importlib.metadata and cache both __version__
    and VERSION in the module globals.
    r   N)metadatazm^([1-9]\d*!)?(0|[1-9]\d*)(\.(0|[1-9]\d*))*((a|b|rc)(0|[1-9]\d*)?)?(\.post(0|[1-9]\d*))?(\.dev(0|[1-9]\d*)?)?$prompt_toolkitc                 S  s   g | ]	}t |d qS )abrc)intrstrip).0v r   /root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/prompt_toolkit/__init__.py
<listcomp>4   s    z!_load_version.<locals>.<listcomp>.r      )re	importlibr   version	fullmatchr   splitr   )r   r   pep440_patternr   partsr   r   r   _load_version   s   
r$   namer   c                 C  s,   | dv rt   t |  S tdtd| )N>   r   r   zmodule z has no attribute )r$   globalsAttributeError__name__)r%   r   r   r   __getattr__8   s   
r)   	list[str]c                   C  s   t h t  ddS )Nr   r   )sortedr&   keysr   r   r   r   __dir__?   s   r-   )	r   r   r	   r   r
   r   r   r   r   N)r   r   )r%   r   r   r   )r   r*   )__doc__
__future__r   typingr   applicationr   formatted_textr   r   	shortcutsr   r	   r
   r   __annotations__r$   r)   r-   __all__r   r   r   r   <module>   s    



