Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/layout/__pycache__/processors.cpython-39.pyc
Ðазад
a d�h�� � @ s^ d Z ddlmZ ddlZddlmZmZ ddlmZm Z m Z mZ ddlm Z ddlmZ ddlmZ dd lmZmZmZ dd lmZmZmZ ddlmZmZ ddlmZ dd lm Z m!Z! ddl"m#Z# er�ddl$m%Z%m&Z& g d�Z'G dd� ded�Z(e e)ge)f Z*e e)ge)f Z+G dd� d�Z,G dd� d�Z-G dd� de(�Z.G dd� de(�Z/G dd� de/�Z0G dd � d e(�Z1G d!d"� d"e(�Z2G d#d$� d$e(�Z3G d%d&� d&e(�Z4G d'd(� d(e(�Z5G d)d*� d*e5�Z6G d+d,� d,e(�Z7G d-d.� d.e(�Z8G d/d0� d0e(�Z9G d1d2� d2e(�Z:G d3d4� d4e(�Z;G d5d6� d6e(�Z<G d7d8� d8e(�Z=G d9d:� d:e(�Z>d;dd<�d=d>�Z?G d?d@� d@e(�Z@dS )Az� Processors are little transformation blocks that transform the fragments list from a buffer before the BufferControl will render it to the screen. They can insert fragments before or after, or highlight fragments by replacing the fragment types. � )�annotationsN)�ABCMeta�abstractmethod)� TYPE_CHECKING�Callable�Hashable�cast)�get_app)�SimpleCache)�Document)�FilterOrBool� to_filter�vi_insert_multiple_mode)�AnyFormattedText�StyleAndTextTuples�to_formatted_text)�fragment_list_len�fragment_list_to_text)�SearchDirection)�to_int�to_str� )�explode_text_fragments)� BufferControl� UIContent)� Processor�TransformationInput�Transformation�DummyProcessor�HighlightSearchProcessor�#HighlightIncrementalSearchProcessor�HighlightSelectionProcessor�PasswordProcessor�!HighlightMatchingBracketProcessor�DisplayMultipleCursors�BeforeInput�ShowArg� AfterInput�AppendAutoSuggestion�ConditionalProcessor�ShowLeadingWhiteSpaceProcessor�ShowTrailingWhiteSpaceProcessor� TabsProcessor�ReverseSearchProcessor�DynamicProcessor�merge_processorsc @ s$ e Zd ZdZeddd�dd��ZdS )r zt Manipulate the fragments for a given line in a :class:`~prompt_toolkit.layout.controls.BufferControl`. r r ��transformation_input�returnc C s t |j�S )z� Apply transformation. Returns a :class:`.Transformation` instance. :param transformation_input: :class:`.TransformationInput` object. �r � fragments��selfr1 � r7 ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/layout/processors.py�apply_transformation@ s zProcessor.apply_transformationN)�__name__� __module__�__qualname__�__doc__r r9 r7 r7 r7 r8 r : s r )� metaclassc @ s>