Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
proc
/
self
/
root
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_vendor
/
rich
/
__pycache__
[ HOME ]
Exec
Submit
padding.cpython-312.pyc
� p�/i, � �� � d dl mZmZmZmZmZ erddlmZmZm Z m Z ddlmZ ddl mZ ddlmZ ddlmZ eeee eeef eeeeef f Z G d� d e� Zed k( rd dlmZ e edd d�� � yy)� )� TYPE_CHECKING�List�Optional�Tuple�Union� )�Console�ConsoleOptions�RenderableType�RenderResult)�JupyterMixin)�Measurement)�Segment)�Stylec � � 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 �G/opt/hc_python/lib/python3.12/site-packages/pip/_vendor/rich/padding.py�__init__zPadding.__init__! s8 � � %���7;�{�{�3�7G�4���$�*�d�k�4�9��� ���� �level�returnc �&