File: //usr/lib/python3/dist-packages/pip/_vendor/rich/__pycache__/tabulate.cpython-310.pyc
o
@%Ne� �
@ s� d dl mZ d dlmZmZ d dlZd dlmZ ddlm Z ddl
mZ ddlm
Z
dd lmZ dd
ddee d
ee dee dee defdd�ZdS )� )�Mapping)�Any�OptionalN)�
JustifyMethod� )�box)�ReprHighlighter)�Pretty)�Table�mappingzMapping[Any, Any]�title�caption�
title_justify�caption_justify�returnc C s� t �dt� td||tjdd�}||_||_|dur||_|dur$||_ t
� }| �� D ]\}}|�t
||d�t
||d�� q+|S )a Generate a simple table from a mapping.
Args:
mapping (Mapping): A mapping object (e.g. a dict);
title (str, optional): Optional title to be displayed over the table.
caption (str, optional): Optional caption to be displayed below the table.
title_justify (str, optional): Justify method for title. Defaults to None.
caption_justify (str, optional): Justify method for caption. Defaults to None.
Returns:
Table: A table instance which may be rendered by the Console.
z/tabulate_mapping will be deprecated in Rich v11F�blue)�show_headerr r
r �border_styleN)�highlighter)�warnings�warn�DeprecationWarningr
r �ROUNDEDr r
r r r �items�add_rowr ) r r r
r r �tabler �key�value� r �;/usr/lib/python3/dist-packages/pip/_vendor/rich/tabulate.py�tabulate_mapping
s( ��r )NNNN)�collections.abcr �typingr r r �pip._vendor.rich.consoler � r r r �prettyr r r
�strr r r r r �<module> s2 �������