HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/pip/_vendor/rich/__pycache__/protocol.cpython-310.pyc
o

��ho�@s`ddlmZmZmZmZddlmZerddlmZdZ	dede
fdd�Zd	edd
fdd�Z
d
S)�)�Any�cast�Set�
TYPE_CHECKING)�isclass��RenderableType�-aihwerij235234ljsdnp34ksodfipwoe234234jlskjdf�check_object�returncCst|t�pt|d�pt|d�S)z+Check if an object may be rendered by Rich.�__rich__�__rich_console__)�
isinstance�str�hasattr)r
�r�D/usr/local/lib/python3.10/dist-packages/pip/_vendor/rich/protocol.py�
is_renderable
s

��r�
renderablercCs~ddlm}t�}t|d�r:t|�s:t|t�rt|�St|d�}|�}t|�}||vr,n|�	|�t|d�r:t|�rt
||�S)z�Cast an object to a renderable by calling __rich__ if present.

    Args:
        renderable (object): A potentially renderable object

    Returns:
        object: The result of recursively calling __rich__.
    rrr)�pip._vendor.rich.consoler�setrr�
_GIBBERISH�repr�getattr�type�addr)rr�rich_visited_set�cast_method�renderable_typerrr�	rich_casts	


�
rN)�typingrrrr�inspectrrrr�boolr�objectrrrrr�<module>s