Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-39.pyc
Ðазад
a "�h � @ sX d dl mZmZ ddlmZ ddlmZ erDddlmZm Z m Z mZ G dd� de�ZdS ) � )�Optional� TYPE_CHECKING� )�JupyterMixin)�Measurement)�Console�ConsoleOptions�RenderableType�RenderResultc @ sL e Zd ZdZddee dd�dd�Zdd d d�dd �Zdd dd�dd�ZdS )� Constrainz�Constrain the width of a renderable to a given number of characters. Args: renderable (RenderableType): A renderable object. width (int, optional): The maximum width (in characters) to render. Defaults to 80. �P r N)� renderable�width�returnc C s || _ || _d S �N)r r )�selfr r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pip/_vendor/rich/constrain.py�__init__ s zConstrain.__init__r r r )�console�optionsr c c s@ | j d u r| jV n(|�t| j |j��}|�| j|�E d H d S r )r r �update_width�min� max_width�render)r r r � child_optionsr r r �__rich_console__ s zConstrain.__rich_console__r c C s* | j d ur|�| j �}t�||| j�}|S r )r r r �getr )r r r �measurementr r r �__rich_measure__ s zConstrain.__rich_measure__)r ) �__name__� __module__�__qualname__�__doc__r �intr r r r r r r r s � �r N) �typingr r �jupyterr �measurer r r r r r r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка