<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
U
    Ê—Re  ã                   @   sX   d dl mZmZ ddlmZ ddlmZ erDddlmZm	Z	m
Z
mZ G dd„ deƒZdS )	é    )ÚOptionalÚTYPE_CHECKINGé   )ÚJupyterMixin)ÚMeasurement)ÚConsoleÚConsoleOptionsÚRenderableTypeÚRenderResultc                   @   sL   e Zd ZdZddee ddœdd„Zdd	d
dœdd„Zdd	ddœdd„ZdS )Ú	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   ú‰/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/rich/constrain.pyÚ__init__   s    zConstrain.__init__r   r   r
   )ÚconsoleÚoptionsr   c                 c   s@   | j d kr| jV  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    

zConstrain.__rich_console__r   c                 C   s*   | j d k	r| | j ¡}t ||| j¡}|S r   )r   r   r   Úgetr   )r   r   r   Úmeasurementr   r   r   Ú__rich_measure__   s    
zConstrain.__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
   