U
    -e                     @  sf   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 ded
 Zd
S )    )annotations)Callable)AnyFormattedText)
DummyInput)DummyOutput   )ApplicationDummyApplicationc                      s   e Zd ZdZdd fddZdd	d
d
d
ddddZdd	d
d
dddddZddd
ddddddZdd
ddddZ  Z	S ) r	   z
    When no :class:`.Application` is running,
    :func:`.get_app` will run an instance of this :class:`.DummyApplication` instead.
    None)returnc                   s   t  jt t d d S )N)outputinput)super__init__r   r   )self	__class__ a/var/www/html/Darija-Ai-Train/env/lib/python3.8/site-packages/prompt_toolkit/application/dummy.pyr      s    zDummyApplication.__init__NTFzCallable[[], None] | Nonebool)pre_runset_exception_handlerhandle_sigint	in_threadr   c                 C  s   t dd S Nz*A DummyApplication is not supposed to run.NotImplementedError)r   r   r   r   r   r   r   r   run   s    zDummyApplication.run      ?float)r   r   r   slow_callback_durationr   c                   s   t dd S r   r   )r   r   r   r   r    r   r   r   	run_async"   s    zDummyApplication.run_async strr   )commandwait_for_enterdisplay_before_text	wait_textr   c                   s   t d S Nr   )r   r$   r%   r&   r'   r   r   r   run_system_command+   s    z#DummyApplication.run_system_command)suspend_groupr   c                 C  s   t d S r(   r   )r   r*   r   r   r   suspend_to_background4   s    z&DummyApplication.suspend_to_background)NTTF)NTTr   )Tr"   r"   )T)
__name__
__module____qualname____doc__r   r   r!   r)   r+   __classcell__r   r   r   r   r	      s"              	N)
__future__r   typingr   Zprompt_toolkit.formatted_textr   Zprompt_toolkit.inputr   Zprompt_toolkit.outputr   Zapplicationr   __all__r	   r   r   r   r   <module>   s   