HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_vendor/rich/__pycache__/tabulate.cpython-310.pyc
o

@%Ne��
@s�ddlmZddlmZmZddlZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZ				dd
ddeed
eedeedeedefdd�ZdS)�)�Mapping)�Any�OptionalN)�
JustifyMethod�)�box)�ReprHighlighter)�Pretty)�Table�mappingzMapping[Any, Any]�title�caption�
title_justify�caption_justify�returnc	Cs�t�dt�td||tjdd�}||_||_|dur||_|dur$||_	t
�}|��D]\}}|�t
||d�t
||d��q+|S)aGenerate 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
rrr�items�add_rowr	)	rrr
rr�tabler�key�value�r�;/usr/lib/python3/dist-packages/pip/_vendor/rich/tabulate.py�tabulate_mapping
s(��r )NNNN)�collections.abcr�typingrrr�pip._vendor.rich.consoler�rrr�prettyr	rr
�strr rrrr�<module>s2�������