Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/input/__pycache__/base.cpython-39.pyc
Ðазад
a d�h� � @ s� d Z ddlmZ ddlmZmZmZ ddlmZ ddl m Z mZmZ ddl mZ g d�ZG dd � d ed �ZG dd� de�ZG d d� de�Zedd�dd��ZdS )z Abstraction of CLI Input. � )�annotations)�ABCMeta�abstractmethod�abstractproperty)�contextmanager)�Callable�ContextManager� Generator)�KeyPress)�Input� PipeInput� DummyInputc @ s� e Zd ZdZedd�dd��Zedd�dd��Zed d�d d��Zd d�dd �Zdd�dd�Z e dd�dd��Zedd�dd��Zedd�dd��Z eddd�dd��Zedd�dd��Zdd�dd �Zd!S )"r z� Abstraction for any input. An instance of this class can be given to the constructor of a :class:`~prompt_toolkit.application.Application` and will also be passed to the :class:`~prompt_toolkit.eventloop.base.EventLoop`. �int��returnc C s dS )z; Fileno for putting this in an event loop. N� ��selfr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/input/base.py�fileno s zInput.fileno�strc C s dS )z@ Identifier for storing type ahead key presses. Nr r r r r �typeahead_hash# s zInput.typeahead_hash�list[KeyPress]c C s dS )zT Return a list of Key objects which are read/parsed from the input. Nr r r r r � read_keys) s zInput.read_keysc C s g S )zk Flush the underlying parser. and return the pending keys. (Used for vt100 input.) r r r r r � flush_keys/ s zInput.flush_keys�Nonec C s dS )z>The event loop can call this when the input has to be flushed.Nr r r r r �flush6 s zInput.flush�boolc C s dS )z/Should be true when the input stream is closed.Fr r r r r �closed: s zInput.closed�ContextManager[None]c C s dS )zE Context manager that turns the input into raw mode. Nr r r r r �raw_mode? s zInput.raw_modec C s dS )zH Context manager that turns the input into cooked mode. Nr r r r r �cooked_modeE s zInput.cooked_mode�Callable[[], None]��input_ready_callbackr c C s dS )zj Return a context manager that makes this input active in the current event loop. Nr �r r$ r r r �attachK s zInput.attachc C s dS )z{ Return a context manager that makes sure that this input is not active in the current event loop. Nr r r r r �detachR s zInput.detachc C s dS )zClose input.Nr r r r r �closeY s zInput.closeN)�__name__� __module__�__qualname__�__doc__r r r r r r r r r r! r&