Current File : //usr/lib/python3/dist-packages/pip/_vendor/rich/__pycache__/pretty.cpython-312.pyc
�

/�g����UddlZddlZddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
mZddlmZm
Z
mZddlmZddlmZddlmZddlmZmZmZmZmZmZmZmZmZmZmZm Z dd	l!m"Z"	ddl#Z$e%e$d
�Z&dd
l(m)Z)ddl*m+Z+ddl,m-Z-ddl.m/Z/ddl0m1Z1ddl2m3Z3ddl4m5Z5m6Z6ddl7m8Z8ddl9m:Z:erddl;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAdedeBfd�ZCdededfd�ZDdeEdeBfd�ZFej�dg�ZHdeEdeBfd�ZI								dmded ed!d"d#d$eBd%eBd&eeJd'eeJd(eeJd)eBde eKdffd*�ZLdeEd+e eMeeMd,ffdeBfd-�ZN								dmd ed!d"d#d$eBd%eBd&eeJd'eeJd(eeJd)eBddfd.�ZOGd/�d0e5�ZPd1eeefdeeKeKeKffd2�ZQd1d3deeKeKeKffd4�ZRej�d5�eeRe
eQed6�ed7�eTd8�ed9�eUd:�eVd;�e	d<�eWd=�eXd>�ed?�i
ZYeeMeegeeKeKeKfffeZd@<eXeYj���Z\eTej�eefZ]dedeBfdA�Z^eGdB�dC��Z_eGdD�dE��Z`dedeBfdF�Za			dnd1ed&eeJd'eeJd(eeJde_f
dG�ZbdHdIdddddJ�d1edKeJdLeJd&eeJd'eeJd(eeJd)eBdeKfdM�ZcddNdddddO�d1ed ed!d%eBd&eeJd'eeJd(eeJd)eBddfdP�ZdeedQk(r�GdR�dS�ZfddTlmgZgGdU�dVeg�Zhe
eJ�ZidWeidX<ddYdZd[d\hd]�geUhd^��e
eVd_gd`�i�egda��dbehdcdddedfdgdhg�ef�di�ZjejdXj�ej�ddjllmmZmGdk�dl�ZnemePen���yy#e'$rdZ&Y���wxYw)o�N)�array)�Counter�UserDict�UserList�defaultdict�deque)�	dataclass�fields�is_dataclass)�isclass)�islice)�MappingProxyType)�
TYPE_CHECKING�Any�Callable�DefaultDict�Dict�Iterable�List�Optional�Sequence�Set�Tuple�Union)�RichReprResult�ibF���get_console)�	loop_last)�	pick_bool)�RichRenderable��cell_len)�ReprHighlighter)�JupyterMixin�JupyterRenderable)�Measurement)�Text)�Console�ConsoleOptions�HighlighterType�
JustifyMethod�OverflowMethod�RenderResult�obj�returnc�N�txrtjt|��S)z1Check if an object was created with attrs module.)�
_has_attrs�_attr_module�has�type�r0s �9/usr/lib/python3/dist-packages/pip/_vendor/rich/pretty.py�_is_attr_objectr9:s���5�,�*�*�4��9�5�5�z_attr_module.Attribute[Any]c�N�trtjt|��SgS)zGet fields for an attrs object.)r3r4r
r6r7s r8�_get_attr_fieldsr<?s��-7�<���t�C�y�)�?�R�?r:c��	|jjjtjk(S#t
$rYywxYw)z�Check if an instance of a dataclass contains the default repr.

    Args:
        obj (object): A dataclass instance.

    Returns:
        bool: True if the default repr is used, False if there is a custom repr.
    F)�__repr__�__code__�co_filename�dataclasses�__file__�	Exceptionr7s r8�_is_dataclass_reprrDDs:����|�|�$�$�0�0�K�4H�4H�H�H������s�03�	?�?�_dummy_namedtuplec��d}	tj|j�}tjt
j�}||k(S#ttf$rY�9wxYw)z�Check if an instance of namedtuple contains the default repr

    Args:
        obj (object): A namedtuple

    Returns:
        bool: True if the default repr is used, False if there's a custom repr.
    N)�inspect�getfiler>�OSError�	TypeErrorrE)r0�obj_file�default_repr_files   r8�_has_default_namedtuple_reprrMXs_���H�
��?�?�3�<�<�0��
 ���(9�(B�(B�C���(�(�(��
�Y��
�	
�
�s�A�A�A�value�consoler*�overflowr.�crop�
indent_guides�
max_length�
max_string�	max_depth�
expand_allc	
��ddlm}	t|t�s|�y|xs
t	�}|j�5}
t||	�r|j
�|jt|t�r|nt|||||||d��|dd��ddd�
j�jd�S#1swY�(xYw)	Nr)�ConsoleRenderable�)rPrRrSrTrUrV�marginT�)rQ�new_line_start�end�
)rOrX�_safe_isinstancer'r�capture�line�printr"�Pretty�get�rstrip)rNrOrPrQrRrSrTrUrVrXr`s           r8�_ipy_display_hookrfls���+���0�1�U�]���&���G�	���	�
�g��E�#4�5��L�L�N��
�
���~�6�
���!�+�%�%�#�%��	����	�	
�	
�.�;�;�=����%�%�/
�
�s�AB4�4B=�class_or_tuple.c�:�	t||�S#t$rYywxYw)zFisinstance can fail in rare cases, for example types with no __class__F)�
isinstancerC)r0rgs  r8r_r_�s&����#�~�.�.������s��	�c	� ���������
�ddlm�
�xs�
����J�dtddf��������fd�}dt�vrDt	�}	ddlm}
G��
�����fd	�d
|
�}|�}||	jjd<y|t_
y)a�Install automatic pretty printing in the Python REPL.

    Args:
        console (Console, optional): Console instance or ``None`` to use global console. Defaults to None.
        overflow (Optional[OverflowMethod], optional): Overflow method. Defaults to "ignore".
        crop (Optional[bool], optional): Enable cropping of long lines. Defaults to False.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
        expand_all (bool, optional): Expand all containers. Defaults to False.
        max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
    rrNrNr1c���|�P��J�dt_�jt|t�r|nt|�����������|t_yy)z?Replacement sys.displayhook which prettifies objects with Rich.N)rPrRrSrTrUrV)rQ)�builtins�_rbr_r"rc)	rNrOrQrVrRrUrSrTrPs	 ��������r8�display_hookzinstall.<locals>.display_hook�sl������&�&�&��H�J��M�M�#�E�>�:����%�"/�)�)�'�)���
�

��H�J�#r:�get_ipython)�
BaseFormatterc�>��eZdZUdZeed<dedef�������fd�Zy)�install.<locals>.RichFormatterT�pprintrNr1c
�b��|jrt|����������St|�S)N)rOrPrRrSrTrUrV)rsrf�repr)	�selfrNrVrrRrUrSrTrPs	  �������r8�__call__z'install.<locals>.RichFormatter.__call__�s=����;�;�,�� +�
�!)�&3�#-�#-�"+�#-�	�	� ��;�&r:N)�__name__�
__module__�__qualname__rs�bool�__annotations__rrw)rVrrRrUrSrTrPs�������r8�
RichFormatterrr�s%����F�D��

'�c�

'�c�

'�

'r:r}z
text/plain)�pip._vendor.richrr�globalsro�IPython.core.formattersrp�display_formatter�
formatters�sys�displayhook)rOrPrQrRrSrTrUrVrn�iprpr}�rich_formatterrs````````     @r8�installr��s�����0-��&���G������C��D���*��	�!�
�]��9�	'�	'�M�	'�&'���8F����'�'��5�&��r:c��eZdZdZ	ddddddddddddd�deded	d
ededd
eddeededeedeedeededededdfd�Z						dd�Z							dd�Z
y)rcakA rich renderable that pretty prints an object.

    Args:
        _object (Any): An object to pretty print.
        highlighter (HighlighterType, optional): Highlighter object to apply to result, or None for ReprHighlighter. Defaults to None.
        indent_size (int, optional): Number of spaces in indent. Defaults to 4.
        justify (JustifyMethod, optional): Justify method, or None for default. Defaults to None.
        overflow (OverflowMethod, optional): Overflow method, or None for default. Defaults to None.
        no_wrap (Optional[bool], optional): Disable word wrapping. Defaults to False.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
        expand_all (bool, optional): Expand all containers. Defaults to False.
        margin (int, optional): Subtrace a margin from width to force containers to expand earlier. Defaults to 0.
        insert_line (bool, optional): Insert a new line if the output has multiple new lines. Defaults to False.
    N�Fr)�indent_size�justifyrP�no_wraprRrSrTrUrVrZ�insert_line�_object�highlighterr,r�r�r-rPr.r�rRrSrTrUrVrZr�r1c���||_|xs
t�|_||_||_||_||_||_||_|	|_	|
|_
||_||_|
|_
y�N)r�r%r�r�r�rPr�rRrSrTrUrVrZr�)rvr�r�r�r�rPr�rRrSrTrUrVrZr�s              r8�__init__zPretty.__init__sk��"���&�;�/�*;���&���29���4<��
����*���$���$���"���$������&��r:c	#�K�t|j|j|jz
|j|j
|j|j|j��}tj||jxs|j|jxs|jt|j|j�d��}|r|j|�n"tt!|j��d�d��}|j"r)|j$s|j'|jd��}|j(rd|vrd	��|��y�w)
N��	max_widthr�rSrTrUrV�pretty)r�rPr��stylez.__repr__ returned empty stringz
dim italic)r�zrepr.indentr^r[)�pretty_reprr�r�rZr�rSrTrUrVr)�	from_ansir�rPr!r�r�r6rR�
ascii_only�with_indent_guidesr�)rvrO�options�
pretty_str�pretty_texts     r8�__rich_console__zPretty.__rich_console__&s$����!��L�L��'�'�$�+�+�5��(�(��������n�n����
�
��n�n���L�L�3�G�O�O��]�]�6�g�&6�&6��d�l�l�G�O�O�<��
���
���[�)������%�&�&E�F�"��	����g�&8�&8�%�8�8�� � �
�9��K������ 3��H���s�EEc	��t|j|j|j|j|j
|j|j��}|r td�|j�D��nd}t||�S)Nr�c3�2K�|]}t|����y�wr�r#��.0ras  r8�	<genexpr>z*Pretty.__rich_measure__.<locals>.<genexpr>Vs����C�4����C���r)r�r�r�r�rSrTrUrV�max�
splitlinesr()rvrOr�r��
text_widths     r8�__rich_measure__zPretty.__rich_measure__Isw��!��L�L��'�'��(�(��������n�n����
�
�HR�C�C�:�+@�+@�+B�C�C�WX�	��:�z�2�2r:r�)rOr*r�r+r1r/)rOr*r�r+r1r()rxryrz�__doc__rr�intr{r�r�r��r:r8rcrc�s���,48�'�
�-1�/3�"'�#�$(�$(�#'� ��!�'��'��/�0�'�
�'��/�*�
'��+�,�'��$��'��'��S�M�'��S�M�'��C�=�'��'��'��'� 
�!'�>!� �!�+;�!�	�!�F3� �3�+;�3�	�3r:rcr�c�D�d|j�d�dd|j�d�fS)Nzdefaultdict(z, {�})z, {}))�default_factory�r�s r8�_get_braces_for_defaultdictr�[s5��
�w�.�.�1��6��
�w�.�.�1��9��r:z
array[Any]c�D�d|j�d�dd|j�d�fS)Nzarray(z, [�])�))�typecoder�s r8�_get_braces_for_arrayr�cs0���W�%�%�(��,�d�f�W�=M�=M�<P�PQ�4R�S�Sr:c��y)N)z	environ({r�zenviron({})r�r�s r8�<lambda>r�h��r:c��y)N)z	Counter({r�z	Counter()r�r�s r8r�r�kr�r:c��y)N)zdeque([r�zdeque()r�r�s r8r�r�lr�r:c��y�N)�{�}z{}r�r�s r8r�r�mr�r:c��yr�r�r�s r8r�r�nr�r:c��y)N)zfrozenset({r�zfrozenset()r�r�s r8r�r�or�r:c��y�N)�[�]z[]r�r�s r8r�r�pr�r:c��yr�r�r�s r8r�r�qr�r:c��y)N)r�r�zset()r�r�s r8r�r�rr�r:c��y)N)�(r��()r�r�s r8r�r�sr�r:c��y)N)zmappingproxy({r�zmappingproxy({})r�r�s r8r�r�tr�r:�_BRACESc��t|t�xs&t|�xst|d�xst	|�xrt|�S)z3Check if an object may be expanded by pretty print.�
__rich_repr__)r_�_CONTAINERSr�hasattrr9rr7s r8�
is_expandabler�zsO��	��k�*�	 ����	 ��C��)�	 ��3��	�
�c�l�
�r:c	��eZdZUdZdZeed<dZeed<dZeed<dZ	eed<dZ
eed<dZeed	<dZ
eed
<dZeed<dZeeded
<dZeed<dZeed<deefd�Zdededefd�Zdefd�Z	ddedededefd�Zy)�Nodez4A node in a repr tree. May be atomic or a container.r[�key_repr�
value_repr�
open_brace�close_brace�emptyF�last�is_tuple�
is_namedtupleN�childrenz: �
key_separatorz, �	separatorr1c#�^K�|jr|j��|j��|jr|j��y|j��|jr�|j��|j
rN|jsBt|j�dk(r*|jdj�Ed{���d��nD|jD]5}|j�Ed{���|jr�(|j���7|j��y|j��yy7�l7�B�w)zGenerate tokens for this node.Nrr�,)
r�r�r�r�r�r�r��len�iter_tokensr�r�r�r�)rv�childs  r8r�zNode.iter_tokens�s������=�=��-�-���$�$�$��?�?��/�/�!�
�]�]�
&��}�}��o�o�%��=�=��);�);��D�M�M�@R�VW�@W�#�}�}�Q�/�;�;�=�=�=��I�!%���1��#(�#4�#4�#6�6�6�$�z�z�"&�.�.�0�1��&�&�&��j�j� �'�>��7�s*�B:D-�<D)�=+D-�(D+�)D-�:0D-�+D-�start_lengthrSc�\�|}|j�D]}|t|�z
}||kDs�yy)a*Check the length fits within a limit.

        Args:
            start_length (int): Starting length of the line (indent, prefix, suffix).
            max_length (int): Maximum length.

        Returns:
            bool: True if the node can be rendered within max length, otherwise False.
        FT)r�r$)rvr�rS�total_length�tokens     r8�check_lengthzNode.check_length�s?��$���%�%�'�	�E��H�U�O�+�L��j�(��	�r:c�D�dj|j��}|S�Nr[)�joinr�)rv�	repr_texts  r8�__str__zNode.__str__�s���G�G�D�,�,�.�/�	��r:r�r�rVc�(�t|d��g}d}|t|�kr[||}|jr6|js*|s|j	|�s|j|�|||dz|dz
}|t|�kr�[dj
d�|D��}|S)alRender the node to a pretty repr.

        Args:
            max_width (int, optional): Maximum width of the repr. Defaults to 80.
            indent_size (int, optional): Size of indents. Defaults to 4.
            expand_all (bool, optional): Expand all levels. Defaults to False.

        Returns:
            str: A repr string of the original object.
        T)�node�is_rootrrr^c3�2K�|]}t|����y�wr�)�strr�s  r8r�zNode.render.<locals>.<genexpr>�s����9�4�S��Y�9�r�)�_Liner��
expandable�expandedr��expandr�)rvr�r�rV�lines�line_nora�repr_strs        r8�renderzNode.render�s����D�$�/�0������E�
�"���>�D����t�}�}��T�%6�%6�y�%A�37�;�;�{�3K�E�'�G�a�K�0��q�L�G���E�
�"��9�9�9�5�9�9���r:)�Pr�F)rxryrzr�r�r�r|r�r�r�r�r�r{r�r�r�rrr�r�rr�r�r�r�r�r�r:r8r�r��s���>��H�c���J����J����K����E�3�O��D�$���H�d���M�4��'+�H�h�t�F�|�$�+��M�3���I�s��!�X�c�]�!�,���#��$��"���
MR����03��EI��	�r:r�c���eZdZUdZdZeded<dZeed<dZ	ee
ed<dZeed<dZ
eed	<dZeed
<dZeed<dZeed<ed
efd��Zded
efd�Zded
edfd�Zd
efd�Zy)r�zA line in repr output.N�parentFr�r�r[�text�suffix�
whitespacer�r�r1c�`�t|jduxr|jj�S)z"Check if the line may be expanded.N)r{r�r��rvs r8r�z_Line.expandable�s'���D�I�I�T�)�@�d�i�i�.@�.@�A�Ar:rSc���t|j�t|j�zt|j�z}|j
�J�|j
j
||�S)z4Check this line fits within a given number of cells.)r�rr$r�r�r�r�)rvrSr�s   r8r�z_Line.check_length�sZ��
���� �8�D�I�I�#6�6��$�+�+�9N�N�	��y�y�$�$�$��y�y�%�%�l�J�?�?r:r�c	#�lK�|j}|�J�|j}|jsJ�|jr4t	|j�|j
�|j��|����}nt	|j|����}|jd|zz}|jxrt|j�dk(}t|j�D].\}}|rdn|j}	t	||||	|xr|��}
|
���0t	|j||j|j����y�w)z6Expand this line by adding children on their own line.N)r�r� rr�)r�r�rr�r�)r�rr�r�)r�rr�r�r�r�r�r�r�r r�r�r�r�)rvr�r�r�new_line�child_whitespace�tuple_of_oner�r�r�ras           r8r�z_Line.expand�s(�����y�y�������_�_�
��}�}��}��=�=�"��
�
��t�'9�'9�&:�4�?�?�:K�L�%���H�
#����J�O�O�H��?�?�S�;�->�>���}�}�@��T�]�]�);�q�)@��$�T�]�]�3�		�K�D�%�+�����I����+� ��.�,�.��D��J�		���!�!�!��;�;����	
�	
�s�D2D4c��|jr*|j�|j�|jxsd��S|j�|j�|jxsd�|jj���Sr�)r�rr�r�r�rers r8r�z
_Line.__str__si���9�9��o�o�&�t�y�y�k�$�)�)�/�r�1B�C�C��?�?�#�D�I�I�;�t�y�y��B�.?����@R�@R�@T�?U�V�
r:)rxryrzr�r�rr|r�r{r�r�r�r�r�rr�r��propertyr�r�r�rr�r�r�r:r8r�r��s��� � $�F�H�W��$��G�T���D�(�4�.���D�#�N��F�C���J����H�d���D�$��
�B�D�B��B�@�s�@�t�@�
�#�
�(�7�*;�
�B��r:r�c��	t|dd�}t|t�xrt|t�S#t$rYywxYw)aXChecks if an object is most likely a namedtuple. It is possible
    to craft an object that passes this check and isn't a namedtuple, but
    there is only a minuscule chance of this happening unintentionally.

    Args:
        obj (Any): The object to test

    Returns:
        bool: True if the object is a namedtuple. False otherwise.
    �_fieldsNF)�getattrrCri�tuple)r0r
s  r8�_is_namedtuplersD�����i��.���c�5�!�?�j���&?�?������s�
1�	=�=c	����������	�dtdtf�fd��t��	�	j��	j�d	dtdt
dtdtf�������	fd�
��|d��}|S)
a`Traverse object and generate a tree.

    Args:
        _object (Any): Object to be traversed.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
            Defaults to None.
        max_depth (int, optional): Maximum depth of data structures, or None for no maximum.
            Defaults to None.

    Returns:
        Node: The root of a tree structure which can be used to render a pretty repr.
    r0r1c������>t|ttf�r(t|��kDrt|��z
}|d��d|��}|S	t	|�}|S#t
$r}dt|��d�}Yd}~|Sd}~wwxYw)z0Get repr string for an object, but catch errors.N�+z<repr-error �>)r_�bytesr�r�rurC)r0�	truncated�obj_repr�errorrTs    �r8�to_reprztraverse.<locals>.to_reprEs����
�"� ��u�c�l�3��C��:�%��C��:�-�I��k�z�*�-�Q�y�k�:�H���	
:���9������
:�)�#�e�*��q�9�����
:�s�A�	A3�A.�.A3�root�depthc	�P���"�t��}|�)vrtd��St��}�$duxr|�$k\}dtdtt
ttttfffd�}	t�d�}d}|s(	t�d	�rt��s�j�}|��7�'|�t�jd
d�}	t||��}
�jj}|
r�g}|j }
|r#|	rtd|�d���}n�t|�d
���}n�|	rtd|�d�d||d��}nt|�d�d||��}t#|
�D]a\}}t%|t&�r0|\}}�#||dz��}||_||_d|_|
|��F�#||dz��}||_|
|��cnt|	rd|�d�n|�d�g|��}�&|��nt/���rA|�s>�'|�g}|j }
t1���"�"r�|r$t�jj�d
���}n�t�jj�d�d||��}dttttt2t4tgtfff�"�fd�}t#|��D]Q\}\}}}|rtt||����}n
�#||dz��}||_||_d|_|
|��Sn%t�jj�d�g|��}�&|��n�t7���rt%�t�s�|s�t9��r��'|�g}|j }
|r$t�jj�d
���}n�t�jj�d�d||�jj�d���}t#d�t;��D��D]M\}}�#t�|j<�|dz��}|j<|_||_d|_|
|��O�&|��n�t?��r�tA��r��'|��jj}|rt|�d
���}ng}|j }
t|�d�d||�d���}t#�jC�jE��D]2\}\}}�#||dz��}||_||_d|_|
|��4�&|��n�t%�tF��r�tFD]}t%�|�s�|}n�'|�tI|��\}}}|rt|�d|����}�n[|jJt��jJk7rt�(��|��}�n$��rg}t||||��}|j }
tM��}|dz
}t%�tN�rjtQ�jE��}�%�tS|�%�}tU|�D]4\} \}}�#||dz��}�(|�|_| |k(|_|
|��6nKtQ��}!�%�tS|!�%�}!tU|!�D]$\} }�#||dz��}| |k(|_|
|��&�%�-|�%kDr(|
td|�%z
��d���nt|g|� �}�&|�nt�(��|��}t%�t&�|_+t?��|_,|S#t$rd}Y���wxYw#t$rY���wxYw)!zWalk the object depth first.z...)r�N�	rich_argsr1c3��K�|D]h}t|t�rRt|�dk(r|\}}}||k(r�-||f���4t|�dk(r|\}}||f���Nt|�dk(s�]|d���e|���jy�w)N��rr)r_rr�)r�arg�keyr��defaults     r8�iter_rich_argsz3traverse.<locals>._traverse.<locals>.iter_rich_argses����� �

��#�C��/��3�x�1�}�.1�+��U�G�"�e�+�$�!�5�j�(��S��Q��%(�
��U�!�5�j�(��S��Q��!�!�f���I�

�s�AA1�"A1�,awehoi234_wdfjwljet234_234wdfoijsdfmmnxpi492Fr��angular�<z...>z(...)rr)r�r�r�r�r�r�r�)r�r�r�r�r)r�=r�)r�r�r�c3��K��D]X}|js�	t�|j�}|j|t|j�r|jndf���Zy#t$r}|j|df��Yd}~�{d}~wwxYw�w)z$Iterate over attr fields and values.N)rur
�name�callablerC)�attrrNr�attr_fieldsr0s   ��r8�
iter_attrsz/traverse.<locals>._traverse.<locals>.iter_attrs�s������%0�&�D�#�y�y�
!&�,3�C����,C�E�)-�	�	�(-�5=�d�i�i�5H��	�	�d�+&�%&�&��(1�!C�+/�9�9�e�T�*B�$B��!C�s-�B	�A"�5B	�"	B�+B�<B	�B�B	)r�r�r�r�r�c3�:K�|]}|js�|���y�wr�)ru)r��fields  r8r�z.traverse.<locals>._traverse.<locals>.<genexpr>�s����-�#�e�j�j�E�-�s��)r�r�r�r�)r�r�z... +T)r�r�r�)-�idr�r6rrrrr�r�rCrr�r
�list�	__class__rx�appendr r_rr�r�r�r9r<rrrrDr
r)rrM�_asdict�itemsr�r�r>r��_MAPPING_CONTAINERS�iterr
�	enumerater�r�)*r0rr�obj_id�obj_type�reached_max_depthr#�fake_attributes�rich_repr_resultr%�args�
class_namer�r3r�r�r r!r��
child_noder-r)rN�
repr_callabler/�container_typer�r�r��	num_items�last_item_index�
iter_items�index�iter_valuesr,�	_traverserUrS�pop_visited�push_visitedr�visited_idss*`                                 @�������r8rHztraverse.<locals>._traverseYsn����C����[� ��5�)�)���9��%�T�1�H�e�y�6H��	�c�	�h�u�S�%��S��/�=Q�7R�.S�	� 	$�%��C��O�6:���
��3��0����'*�'8�'8�':�$��'��� ��c�/�/��E�B�G���'7�8�9�D����/�/�J����!����$��#��:�,�d�/C�D��#�*��U�/C�D���#�)*�:�,�a�'8�(+�%-�!%�&)� �� $�*4��Q�'7�(+�%-�!%�	 ��&/�t�_�/�	��c�+�C��7�),�J�C��)2�5���	�)J�J�.2�J�O�25�J�/�7:�J�4�"�:�.�)2�3�e�a�i�)H�J�.2�J�O�"�:�.�/��4;��:�,�a�0�J�<�r�AR�����

���
�S�
!�/��� ��H��_�_�F�*�3�/�K��$��c�m�m�.D�.D�-E�U�+K�L�D��&)�m�m�&<�&<�%=�Q�#?�$'�!)�!�	�D�&���c�3���3�%��*�1E�(F�F�G�)�&�$?H�
��>U�+�:��:�t�U�M�(�)-��]�5�=Q�9R�)S�J�)2�5���	�)J�J�*.�
��.2�
�+�36�
�0��z�*�+��"%�-�-�"8�"8�!9��<�r�PT���
������$�S�$�/�#�"�3�'��� ��H��_�_�F� ��#�-�-�*@�*@�)A��'G�H���"%�-�-�"8�"8�!9��;� #�%�� �]�]�3�3�4�B�7���$-�-�'-�c�{�-�$�'�K�D�%�"+�7�3��
�
�+C�5�ST�9�!U�J�*/�*�*�J�'�&*�J�O�/2�J�,��:�&�'�
���
�C�
 �%A�#�%F��� ����/�/�J� ��",��U�3�����!�����",��Q�/� #�%�'�L��+�	��+4�C�K�K�M�4G�4G�4I�*J�'�&�D�,�3��!*�5���	�!B�J�*-�J�'�&*�J�O�/2�J�,��:�&�'�
���
�c�;�
/�"-�
��#�C��8�-�H��
�

�� �-4�X�->�s�-C�*�J��U� ��*��S��
�'F�G���"�"�d�3�i�&8�&8�8��w�s�|�$�?������)� +�%��	��"������H�	�"+�a�-��#�C�)<�=�!%�c�i�i�k�!2�J�!�-�%+�J�
�%C�
�/8��/D�+�+��|��U�%.�u�E�A�I�%F�
�.5�c�l�
�+�*/�?�*B�
���z�*�	+�#'�s�)�K�!�-�&,�[�*�&E��(1�+�(>�+���u�%.�u�E�A�I�%F�
�*/�?�*B�
���z�*�+��)�i�*�.D��4�U�9�z�3I�2J�+K�RV�W�X��%�"�4�@������7�3�<�d�;�D�(��e�4��
�+�C�0������s�	$�#�O�	$���
��
�s$�'\�8'\�\�\�	\%�$\%T)r)Fr)rr��set�add�remover{r�r�)
r�rSrTrUr�rHrIrJrrKs
 ``` @@@@@r8�traverserO0ss���*�S��S��  �E�K��?�?�L��$�$�K�y�s�y�$�y�s�y�4�y�y�v�W�4�(�D��Kr:r�r�r�r�r�c�r�t|t�r|}nt||||��}|j|||��}|S)a�Prettify repr string by expanding on to new lines to fit within a given width.

    Args:
        _object (Any): Object to repr.
        max_width (int, optional): Desired maximum width of repr string. Defaults to 80.
        indent_size (int, optional): Number of spaces to indent. Defaults to 4.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
            Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structure, or None for no depth.
            Defaults to None.
        expand_all (bool, optional): Expand all containers regardless of available width. Defaults to False.

    Returns:
        str: A possibly multi-line representation of the object.
    )rSrTrU)r�r�rV)r_r�rOr�)	r�r�r�rSrTrUrVr�r�s	         r8r�r�XsI��8���&�����
�z�Y�
���K�K���� ��H��Or:T)rOrRrSrTrUrVc�f�|�
t�n|}|jt||||||d��d��y)a�A convenience function for pretty printing.

    Args:
        _object (Any): Object to pretty print.
        console (Console, optional): Console instance, or None to use default. Defaults to None.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of strings before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth for nested data structures, or None for unlimited depth. Defaults to None.
        indent_guides (bool, optional): Enable indentation guides. Defaults to True.
        expand_all (bool, optional): Expand all containers. Defaults to False.
    N�ignore)rSrTrUrRrVrPT)�	soft_wrap)rrbrc)r�rOrRrSrTrUrV�_consoles        r8rsrs�sD��,!(��{�}�W�H��N�N���!�!��'�!��	
���r:�__main__c��eZdZdefd�Zy)�
BrokenReprr1c��ddzy)Nrrzthis will failr�rs r8r>zBrokenRepr.__repr__�s��
��E�#r:N�rxryrzr�r>r�r:r8rWrW�s��	$�c�	$r:rW)�
NamedTuplec�F�eZdZUeed<eed<eed<eed<eeed<y)�StockKeepingUnitr)�description�price�category�reviewsN)rxryrzr�r|�floatrr�r:r8r\r\�s!���	������
��c��r:r\��foozHello World!gZd;�Y@g�ʡE�3t@gcA>�rrrr�rb���>rrr�crumble)�apple�rhubarb�butter�sugar�flour)ri�orange�pear�kumquatrp�Xduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurian)FTNzSparkling British Spring WaterzCarbonated spring waterg�������?�waterzits amazing!z
its terrible!)rc�barr�counter�atomic�
namedtuple�Broken)rbc��eZdZdefd�Zy)�Thingr1c��y)NzHello World!r�rs r8r>zThing.__repr__�s��/r:NrYr�r:r8ryry�s��	0�c�	0r:ry)NrRFFNNNF)NNN)orl�collectionsrArG�osr�rrrrrrr	r
rr�	itertoolsr
�typesr�typingrrrrrrrrrrrr�pip._vendor.rich.reprrr+r4r�r3�ImportErrorr[r�_loopr �_pickr!�abcr"�cellsr$r�r%�jupyterr&r'�measurer(r�r)rOr*r+r,r-r.r/r{r9r<�objectrDrvrErMr�r�rfr6r_r�rcr�r��_Environ�dict�	frozensetr1rLrr�r|�keysr�r6r�r�r�rrOr�rsrxrWrZr\�d�datar3r~rbryr�r:r8�<module>r�s�������	�
��G�G�7�7���"�
�
�
�
�1�����t�,�J������(�4� �����6��6��6�
@�#�@�(�+H�"I�@�
�F��t��"+�K�*�*�+>��C��)�f�)��)�,$(�!)��� $� $�#��+&��+&�
�i�
 �+&��+&��	+&�
�+&���
�
+&���
�+&���}�+&��+&��3��9��+&�\�	��!&�t�U�4��9�-=�'=�!>��	��$(�!)��� $� $�#��L'�
�i�
 �L'��L'��L'��	L'�
��
�L'���
�
L'���}�L'��L'�
�L'�^e3�\�e3�P��S�#�X�)>��5��c�SV��CW��T�<�T�E�#�s�C�-�4H�T�
�K�K�C�	� ��,��
=�	�7��
*��.�
�C��
*��.��	,�	�+��R�>���d�H�c�U�E�#�s�C�-�$8�8�9�9�	:���G�L�L�N�#���R�[�[�*:�H�E���s��t���Q�Q��Q�h�@�@��@�F@��@��@�*!%� $�#�	e�
�e���
�e���
�e���}�	e�

�e�V	�� $� $�#��%�
�%��%��	%�
��
�%���
�
%���}�%��%�	�%�V$(�� $� $�#��"�
�"��i�
 �"��	"�
��
�"���
�
"���}�"��"�
�"�J�z��$�$�
"��:��	�C��A��A�e�H�
�����&�

���#�"��9�N�O�
��
�	
�&�&�,�%���
�_�-�
��,�? �D�B	��K���t��&�0�0�
�&���/��{��G���J��s�-
L>�>M	�M	
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!