관리-도구
편집 파일: live_render.cpython-38.pyc
U &?�fR � @ s� d dl Z d dlmZmZ e jdkr0d dlmZ nd dlmZ ddlmZ ddl m Z mZmZm Z ddlmZ dd lmZmZ dd lmZ ddlmZ ed ZG d d� d�ZdS )� N)�Optional�Tuple)� � )�Literal� )� loop_last)�Console�ConsoleOptions�RenderableType�RenderResult)�Control)�ControlType�Segment)� StyleType)�Text)�crop�ellipsis�visiblec @ sd e Zd ZdZdeeedd�dd�Zedd�d d �Ze d�dd �Z e d�dd�Zee ed�dd�ZdS )� LiveRenderz�Creates a renderable that may be updated. Args: renderable (RenderableType): Any renderable object. style (StyleType, optional): An optional style to apply to the renderable. Defaults to "". � r N)� renderable�style�vertical_overflow�returnc C s || _ || _|| _d | _d S )N)r r r �_shape)�selfr r r � r �J/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/rich/live_render.py�__init__ s zLiveRender.__init__)r r c C s || _ dS )z|Set a new renderable. Args: renderable (RenderableType): Any renderable object, including str. N)r )r r r r r �set_renderable'