ó
    Eñiò  ã                  ó¤   • S SK Jr  S SKrS SKrSS jrSS jrSS jr " S S\R                  5      rSS jr	S	r
\
S
4       SS jjrSSS jjrg)é    )ÚannotationsNc                ó�   •  [        U 5      $ ! [        [        4 a    e [         a    [	        U 5      R
                   SU  S3s $ f = f)Nz("z"))ÚreprÚKeyboardInterruptÚ
SystemExitÚBaseExceptionÚtypeÚ__name__)Úobjs    ÚQ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/_pytest/_io/saferepr.pyÚ_try_repr_or_strr      sN   € ð0Ü�C‹yÐøÜœzÐ*ó ØÜó 0Ü�s“)×$Ñ$Ð% R¨ u¨BÐ/Ò/ð0ús   ‚
 �5AÁAc                óØ   •  [        U 5      nSU S[	        U5      R
                   S[        U5      S S3$ ! [        [        4 a    e [         a  nS[        U5       S3n S nANWS nAff = f)Nzunpresentable exception (Ú)z<[z raised in repr()] z object at 0xÚxÚ>)r   r   r   r   r	   r
   Úid)Úexcr   Úexc_infoÚ	inner_excs       r   Ú_format_repr_exceptionr      s~   € ðNÜ# CÓ(ˆð ˆXˆJÐ)¬$¨s«)×*<Ñ*<Ð)=¸]Ì2ÈcË7ÐSTÈ+ÐUVÐWðøô	 œzÐ*ó ØÜó NØ.Ô/?À	Ó/JÐ.KÈ1ÐM�ûðNús   ‚6 ¶A)ÁA$Á$A)c                ó    • [        U 5      U:”  a>  [        SUS-
  S-  5      n[        SUS-
  U-
  5      nU S U S-   U [        U 5      U-
  S  -   $ U $ )Nr   é   é   z...)ÚlenÚmax)ÚsÚmaxsizeÚiÚjs       r   Ú
_ellipsizer       s_   € Ü
ˆ1ƒv�ÓÜ��G˜a‘K AÑ%Ó&ˆÜ��7˜Q‘; ‘?Ó#ˆØ��!ˆu�u‰}˜q¤ Q£¨!¡ ˜Ñ.Ð.Ø€Hó    c                  óN   ^ • \ rS rSrSrSSU 4S jjjrS	U 4S jjrS
S jrSrU =r	$ )ÚSafeRepré$   zs
repr.Repr that limits the resulting size of repr() and includes
information on exceptions raised during the call.
c                óR   >• [         TU ]  5         Ub  UOSU l        Xl        X l        g)zá
:param maxsize:
    If not None, will truncate the resulting repr to that specific size, using ellipsis
    somewhere in the middle to hide the extra text.
    If None, will not impose any size limits on the returning repr.
Ni Êš;)ÚsuperÚ__init__Ú	maxstringr   Ú	use_ascii)Úselfr   r)   Ú	__class__s      €r   r'   ÚSafeRepr.__init__*   s*   ø€ ô 	‰ÑÔð %,Ñ$7™¸]ˆŒØŒØ"�r!   c                ó  >•  U R                   (       a  [        U5      nO[        TU ]  U5      n U R                  b  [        X R                  5      nU$ ! [        [
        4 a    e [         a  n[        X15      n S nANNS nAff = f©N)
r)   Úasciir&   r   r   r   r   r   r   r    )r*   r   r   r   r+   s       €r   r   ÚSafeRepr.repr9   sp   ø€ ð	/Ø�~�~Ü˜!“H‘ä‘G‘L “O‘ð
 �<‰<Ñ#Ü˜1Ÿl™lÓ+ˆAØˆøô "¤:Ð.ó 	ØÜó 	/Ü& sÓ.�Aûð	/ús   ƒA  A ÁBÁ.A>Á>Bc                óÆ   •  [        U5      nU R
                  b  [        X0R
                  5      nU$ ! [        [        4 a    e [         a  n[	        XA5      n S nANNS nAff = fr.   )r   r   r   r   r   r   r    )r*   r   Úlevelr   r   s        r   Úrepr_instanceÚSafeRepr.repr_instanceG   s[   € ð	/Ü�Q“ˆAð
 �<‰<Ñ#Ü˜1Ÿl™lÓ+ˆAØˆøô "¤:Ð.ó 	ØÜó 	/Ü& sÓ.�Aûð	/ús   ‚1 ±A ÁAÁA )r   r(   r)   )F)r   ú
int | Noner)   ÚboolÚreturnÚNone)r   Úobjectr7   Ústr)r   r9   r2   Úintr7   r:   )
r
   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r'   r   r3   Ú__static_attributes__Ú__classcell__)r+   s   @r   r#   r#   $   s!   ø† ñ÷
#ñ #÷÷	ò 	r!   r#   c                ót   •  [         R                  " U 5      $ ! [         a  n[        X5      s SnA$ SnAff = f)z”Return a pretty printed string for the given object.

Failing __repr__ functions of user instances will be represented
with a short exception info.
N)ÚpprintÚpformatÚ	Exceptionr   )r   r   s     r   Ú
safeformatrF   S   s1   € ð0Ü�~Š~˜cÓ"Ð"øÜó 0Ü% cÓ/Õ/ûð0ús   ‚ ˜
7¢
2¬7²7éð   Fc                ó6   • [        X5      R                  U 5      $ )a2  Return a size-limited safe repr-string for the given object.

Failing __repr__ functions of user instances will be represented
with a short exception info and 'saferepr' generally takes
care to never raise exceptions itself.

This function is a wrapper around the Repr/reprlib functionality of the
stdlib.
)r#   r   )r   r   r)   s      r   ÚsafereprrI   c   s   € ô �GÓ'×,Ñ,¨SÓ1Ð1r!   c                ó‚   •  U(       a  [        U 5      $ [        U 5      $ ! [         a  n[        X 5      s SnA$ SnAff = f)a\  Return an unlimited-size safe repr-string for the given object.

As with saferepr, failing __repr__ functions of user instances
will be represented with a short exception info.

This function is a wrapper around simple repr.

Note: a cleaner solution would be to alter ``saferepr``this way
when maxsize=None, but that might affect some other code.
N)r/   r   rE   r   )r   r)   r   s      r   Úsaferepr_unlimitedrK   r   s9   € ð0ÞÜ˜“:ÐÜ�C‹yÐøÜó 0Ü% cÓ/Õ/ûð0ús   ‚ ”
 Ÿ
>©
9³>¹>)r   r9   r7   r:   )r   r   r   r9   r7   r:   )r   r:   r   r;   r7   r:   )r   r9   r   r5   r)   r6   r7   r:   )T)r   r9   r)   r6   r7   r:   )Ú
__future__r   rC   Úreprlibr   r   r    ÚReprr#   rF   ÚDEFAULT_REPR_MAX_SIZErI   rK   © r!   r   Ú<module>rQ      sm   ðÝ "ã Û ô0ô	ôô,ˆw�|‰|ô ,ô^	0ð Ð ð (=ÐPUð2Ø	ð2Ø$ð2ØIMð2àõ2÷0r!   