|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/local/lib/python3.9/site-packages/prompt_toolkit/application/__pycache__/ |
a
��ShS � @ sr d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZ ddlm
Z
d gZG d
d � d e
d �ZdS )� )�annotations)�Callable)� InputHook)�AnyFormattedText)�
DummyInput)�DummyOutput� )�Application�DummyApplicationc s� e Zd ZdZdd�� fdd�Zdd d
d
d
ddd�d
d�Zdd d
d
ddd�dd�Zddd
dddd�dd�Zd d
dd�dd�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 � jt� t� d� d S )N)�output�input)�super�__init__r r )�self�� __class__� �J/usr/local/lib/python3.9/site-packages/prompt_toolkit/application/dummy.pyr s zDummyApplication.__init__NTFzCallable[[], None] | None�boolzInputHook | None)�pre_run�set_exception_handler�
handle_sigint� in_thread� inputhookr c C s t d��d S �Nz*A DummyApplication is not supposed to run.��NotImplementedError)r r r r r r r r r �run s zDummyApplication.run� �?�float)r r r �slow_callback_durationr c � s t d��d S r r )r r r r r"