← Back
Editing: dummy.cpython-311.pyc
� �Ïc� � �t � d dl mZmZ d dlmZ d dlmZ d dlmZ ddl m Z dgZ G d� de d � � Zd S ) � )�Callable�Optional)�AnyFormattedText)� DummyInput)�DummyOutput� )�Application�DummyApplicationc �� � � e Zd ZdZd� fd�Z ddeeg df ded ed eddf d�Z ddeeg df ded ed e ddf d�Z ddededededdf d�Z ddeddfd�Z� xZS )r z� When no :class:`.Application` is running, :func:`.get_app` will run an instance of this :class:`.DummyApplication` instead. �returnNc �~ �� t � � � t � � t � � �� � d S )N)�output�input)�super�__init__r r )�self� __class__s ��B/usr/lib/python3/dist-packages/prompt_toolkit/application/dummy.pyr zDummyApplication.__init__ s. �� � ������ � �Z�\�\��B�B�B�B�B� TF�pre_run�set_exception_handler� handle_sigint� in_threadc � � t d� � ��Nz*A DummyApplication is not supposed to run.��NotImplementedError)r r r r r s r �runzDummyApplication.run s � � "�"N�O�O�Or � �?�slow_callback_durationc � �$ K � t d� � �r r )r r r r r s r � run_asynczDummyApplication.run_async s � � � � "�"N�O�O�Or � �command�wait_for_enter�display_before_text� wait_textc � � K � t ��Nr )r r$ r% r&