
    ^hS                    z    S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  SSKJr  S	/r " S
 S	\S   5      rg)    )annotations)Callable)	InputHook)AnyFormattedText)
DummyInput)DummyOutput   )ApplicationDummyApplicationc                     ^  \ rS rSrSrS	U 4S jjr     S
           SS jjr    S         SS jjr   S         SS jjrSSS jjr	Sr
U =r$ )r      z}
When no :class:`.Application` is running,
:func:`.get_app` will run an instance of this :class:`.DummyApplication` instead.
c                B   > [         TU ]  [        5       [        5       S9  g )N)outputinput)super__init__r   r   )self	__class__s    Z/home/james-whalen/.local/lib/python3.13/site-packages/prompt_toolkit/application/dummy.pyr   DummyApplication.__init__   s    Z\B    c                    [        S5      eNz*A DummyApplication is not supposed to run.NotImplementedError)r   pre_runset_exception_handlerhandle_sigint	in_thread	inputhooks         r   runDummyApplication.run   s     ""NOOr   c                    #    [        S5      e7fr   r   )r   r   r   r   slow_callback_durations        r   	run_asyncDummyApplication.run_async$   s      ""NOOs   c                   #    [         e7fNr   )r   commandwait_for_enterdisplay_before_text	wait_texts        r   run_system_command#DummyApplication.run_system_command-   s      "!s   	c                    [         er(   r   )r   suspend_groups     r   suspend_to_background&DummyApplication.suspend_to_background6   s    !!r    )returnNone)NTTFN)r   Callable[[], None] | Noner   boolr   r7   r   r7   r    zInputHook | Noner4   r5   )NTTg      ?)
r   r6   r   r7   r   r7   r$   floatr4   r5   )T r9   )
r)   strr*   r7   r+   r   r,   r:   r4   r5   )T)r0   r7   r4   r5   )__name__
__module____qualname____firstlineno____doc__r   r!   r%   r-   r1   __static_attributes____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   r3   r   r   <module>rJ      s7    "  . : + - $ 
&"{4( &"r   