OwlCyberSecurity - MANAGER
Edit File: padding.cpython-312.pyc
� ���g, � �� � 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 �&