Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/formatted_text/__pycache__/utils.cpython-39.pyc
Ðазад
a d�h� � @ s� d Z ddlmZ ddlmZmZ ddlmZ ddlm Z m Z mZmZ g d�Z dd d �dd�Zd dd�dd�Zd dd�dd�Zd d d�dd�Zddd�dd�ZdS )z� Utilities for manipulating formatted text. When ``to_formatted_text`` has been called, we get a list of ``(style, text)`` tuples. This file contains functions for manipulating such a list. � )�annotations)�Iterable�cast�� get_cwidth� )�AnyFormattedText�OneStyleAndTextTuple�StyleAndTextTuples�to_formatted_text)� to_plain_text�fragment_list_len�fragment_list_width�fragment_list_to_text�split_linesr �str)�value�returnc C s t t| ��S )z? Turn any kind of formatted text back into plain text. )r r )r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/formatted_text/utils.pyr s r r �int)� fragmentsr c s d� t � fdd�| D ��S )z� Return the amount of characters in this text fragment list. :param fragments: List of ``(style_str, text)`` or ``(style_str, text, mouse_handler)`` tuples. �[ZeroWidthEscape]c 3 s&