
    ~/j                        S SK Jr  S SKJr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr   S         SS	 jjr S         SS
 jjrg)    )annotations)Iterable)Iterator)Sequence)PrettyPrinter)saferepr)_HighlightFunc)running_on_cic           	   #  |  #    US::  a  [        5       (       d  Sv   g SS Kn[        5       R                  U 5      R	                  5       n[        5       R                  U5      R	                  5       nSv   Sv   U" SR                  S UR                  Xe5       5       5      SS9R	                  5        S h  vN   g  N7f)	Nr   zUse -v to get more diff z
Full diff:
c              3  @   #    U  H  oR                  5       v   M     g 7f)N)rstrip).0lines     b/root/lseg-credit/backend/venv/lib/python3.13/site-packages/_pytest/assertion/_compare_sequence.py	<genexpr>'_compare_eq_iterable.<locals>.<genexpr>!   s      
&VdKKMM&Vs   diff)lexer)r
   difflibr   pformat
splitlinesjoinndiff)leftrighthighlighterverboser   left_formattingright_formattings          r   _compare_eq_iterabler"      s      !|MOO''#o--d3>>@O$..u5@@B
H
 		 
&-mm4D&V
 	
 	
 jl s   B2B<4B:5B<c              #  2  #    [        U [        5      =(       a    [        U[        5      n[        U 5      n[        U5      n[        [	        XV5      5       HX  nX   X   :w  d  M  U(       a  XUS-    nXUS-    n	OX   nX   n	SU SU" [        U5      5       SU" [        U	5      5       3v     O   U(       a  g XV-
  n
U
(       aS  U
S:  a  Sn[        X   5      nOSU
-
  n
Sn[        X   5      nU
S:X  a  U SU" U5       3v   g U S	U
 S
U" U5       3v   g g 7f)N   z	At index z diff: z != r   LeftRightz contains one more item: z
 contains z more items, first extra item: )
isinstancebyteslenrangeminreprr   )r   r   r   r   comparing_byteslen_left	len_righti
left_valueright_valuelen_diffdir_with_moreextras                r   _compare_eq_sequencer6   (   sI     !u-J*UE2JO4yHE
I3x+,7eh &*a!e_
&+A&6!W
#h A3 Z 012${4CT7U6VX + -.  	#Ha<"MT_-E8|H#MU_-Eq="O#<[=O<PQQ"O:hZ7VWbchWiVjkk s   AD#B4DN)r   )
r   Iterable[object]r   r7   r   r	   r   intreturnIterator[str])
r   Sequence[object]r   r;   r   r	   r   r8   r9   r:   )
__future__r   collections.abcr   r   r   _pytest._io.pprintr   _pytest._io.safereprr   _pytest.assertion._typingr	   _pytest.compatr
   r"   r6        r   <module>rD      s    " $ $ $ , ) 4 ( 	
   	
 > 	2l
2l2l  2l 	2l
 2lrC   