
    fS                    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	gZ G d
 d	ed         Zy)    )annotations)Callable)	InputHook)AnyFormattedText)
DummyInput)DummyOutput   )ApplicationDummyApplicationc                       e Zd ZdZd fdZ	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 d	dZ	 	 	 	 d
	 	 	 	 	 	 	 	 	 ddZ	 	 	 d	 	 	 	 	 	 	 	 	 ddZdddZ xZ	S )r   z
    When no :class:`.Application` is running,
    :func:`.get_app` will run an instance of this :class:`.DummyApplication` instead.
    c                H    t         |   t               t                      y )N)outputinput)super__init__r   r   )self	__class__s    [/var/www/cvtools/html/venv/lib/python3.12/site-packages/prompt_toolkit/application/dummy.pyr   zDummyApplication.__init__   s    Z\B    c                    t        d      Nz*A DummyApplication is not supposed to run.NotImplementedError)r   pre_runset_exception_handlerhandle_sigint	in_thread	inputhooks         r   runzDummyApplication.run   s     ""NOOr   c                    K   t        d      wr   r   )r   r   r   r   slow_callback_durations        r   	run_asynczDummyApplication.run_async$   s      ""NOOs   c                   K   t         wNr   )r   commandwait_for_enterdisplay_before_text	wait_texts        r   run_system_commandz#DummyApplication.run_system_command-   s      "!s   	c                    t         r$   r   )r   suspend_groups     r   suspend_to_backgroundz&DummyApplication.suspend_to_background6   s    !!r   )returnNone)NTTFN)r   Callable[[], None] | Noner   boolr   r0   r   r0   r   zInputHook | Noner-   r.   )NTTg      ?)
r   r/   r   r0   r   r0   r!   floatr-   r.   )T r2   )
r%   strr&   r0   r'   r   r(   r3   r-   r.   )T)r+   r0   r-   r.   )
__name__
__module____qualname____doc__r   r   r"   r)   r,   __classcell__)r   s   @r   r   r      s    
C
 .2&*"&*P*P  $P 	P
 P $P 
P .2&*"(+P*P  $P 	P
 !&P 
P  $02"" " .	"
 " 
"" "r   N)
__future__r   typingr   prompt_toolkit.eventloopr   prompt_toolkit.formatted_textr   prompt_toolkit.inputr   prompt_toolkit.outputr   applicationr
   __all__r    r   r   <module>rB      s7    "  . : + - $ 
&"{4( &"r   