Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/__pycache__/auto_suggest.cpython-39.pyc
Ðазад
a d�h� � @ s� d Z ddlmZ ddlmZmZ ddlmZmZ ddl m Z ddlmZ ddl mZmZ erhdd lmZ g d �ZG dd� d�ZG d d� ded�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )a) `Fish-style <http://fishshell.com/>`_ like auto-suggestion. While a user types input in a certain buffer, suggestions are generated (asynchronously.) Usually, they are displayed after the input. When the cursor presses the right arrow and the cursor is at the end of the input, the suggestion will be inserted. If you want the auto suggestions to be asynchronous (in a background thread), because they take too much time, and could potentially block the event loop, then wrap the :class:`.AutoSuggest` instance into a :class:`.ThreadedAutoSuggest`. � )�annotations)�ABCMeta�abstractmethod)� TYPE_CHECKING�Callable��run_in_executor_with_context� )�Document)�Filter� to_filter)�Buffer)� Suggestion�AutoSuggest�ThreadedAutoSuggest�DummyAutoSuggest�AutoSuggestFromHistory�ConditionalAutoSuggest�DynamicAutoSuggestc @ s. e Zd ZdZddd�dd�Zdd�dd �Zd S )r zb Suggestion returned by an auto-suggest algorithm. :param text: The suggestion text. �str�None)�text�returnc C s || _ d S �N�r )�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/auto_suggest.py�__init__. s zSuggestion.__init__�r c C s d| j � d�S )NzSuggestion(�)r )r r r r �__repr__1 s zSuggestion.__repr__N)�__name__� __module__�__qualname__�__doc__r r! r r r r r '