관리-도구
편집 파일: rule.cpython-312.pyc
� G��e� � �^ � d dl mZ ddlmZ ddlmZmZ ddlmZm Z m Z ddlmZ ddl mZ ddlmZ dd lmZ G d � de� Zedk( rZd d lZd dlmZ ej. d Z e� Zej3 ee�� � e� Zej3 ed� d�� y y # e$ r dZY �Jw xY w)� )�Union� )�AlignMethod)�cell_len� set_cell_size)�Console�ConsoleOptions�RenderResult)�JupyterMixin��Measurement)�Style)�Textc � � e Zd ZdZ dddddd�deeef ded eeef d ededd fd�Z defd�Z dedede fd�Zdededefd�Zdededefd�Zy )�Ruleu A console renderable to draw a horizontal rule (line). Args: title (Union[str, Text], optional): Text to render in the rule. Defaults to "". characters (str, optional): Character(s) used to draw the line. Defaults to "─". style (StyleType, optional): Style of Rule. Defaults to "rule.line". end (str, optional): Character at end of Rule. defaults to "\\n" align (str, optional): How to align the title, one of "left", "center", or "right". Defaults to "center". u ─z rule.line� �center)� characters�style�end�align�titler r r r �returnNc � � t |� dk rt d� �|dvrt d|�d�� �|| _ || _ || _ || _ || _ y )Nr z:'characters' argument must have a cell width of at least 1)�leftr �rightzAinvalid value for align, expected "left", "center", "right" (not �))r � ValueErrorr r r r r )�selfr r 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/rule.py�__init__z Rule.__init__ sm � � �J��!�#��L�� � �3�3��S�TY�S\�\]�^�� � �� �$����� ������ � c �<