관리-도구
편집 파일: padding.cpython-312.pyc
� G��ej � �� � d dl mZmZmZmZmZmZ erddlmZm Z m Z mZ ddlm Z ddlmZ ddlmZ ddlmZ eeee eeef eeeeef f Z G d� d e � Zed k( rd dlmZ e edd d�� � yy)� )�cast�List�Optional�Tuple� TYPE_CHECKING�Union� )�Console�ConsoleOptions�RenderableType�RenderResult)�JupyterMixin)�Measurement)�Style)�Segmentc � � e Zd ZdZ dddd�ddddd eeef d efd�Ze ddde d d fd�� Zeddd e e e e e f fd�� Zd efd�Z dd�Z dd�Zy)�Paddinga Draw space around content. Example: >>> print(Padding("Hello", (2, 4), style="on blue")) Args: renderable (RenderableType): String or other renderable. pad (Union[int, Tuple[int]]): Padding for top, right, bottom, and left borders. May be specified with 1, 2, or 4 integers (CSS style). style (Union[str, Style], optional): Style for padding characters. Defaults to "none". expand (bool, optional): Expand padding to fit available width. Defaults to True. �noneT)�style�expand� renderabler �pad�PaddingDimensionsr r c � � || _ | j |� \ | _ | _ | _ | _ || _ || _ y )N)r �unpack�top�right�bottom�leftr r )�selfr r r r s ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/rich/padding.py�__init__zPadding.__init__! s8 � � %���7;�{�{�3�7G�4���$�*�d�k�4�9��� ���� �level�returnc �&