+
    yȇi#                     r    ^ RI H t  ^ RIt^ RIt^ RIt^ RIHtHt ^ RIH	t
 ^ RIHt R R lt ! R R4      tR# )	    )datetimeN)IndexSeries)	safe_sortc                $    V ^8  d   QhR\         /# )   return)bool)formats   "{/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/indexes/base_class/test_setops.py__annotate__r      s     . .$ .    c                0    \        V 4      \        V4      8H  # )zG
Checks if the set of unique elements of arr1 and arr2 are equivalent.
)	frozenset)arr1arr2s   &&r   equal_contentsr      s     T?io--r   c                     a  ] tR t^t o ]P
                  P                  R. R)O4      R 4       tR tR t	]P
                  P                  R	]
P                  ]].4      R
 4       tR tR tR tR t]P
                  P                  R	]
P                  ]].4      R 4       tR tR tR t]P
                  P                  RRR.R.3. R*ORR.3.4      R 4       tR tR t]P
                  P                  RR]
P                  ! . R+OR]3R,.R7      R3R]
P                  ! . R-OR]3R,.R7      R3R]
P                  ! . R.OR]3R,.R7      R3.4      R 4       t]P
                  P                  R R!R".. .4      ]P
                  P                  R#R"R!.. .4      ]P
                  P                  R$. R/O4      R% 4       4       4       t]P
                  P                  R&R^R..R. R0O..4      R' 4       tR(tV tR# )1TestIndexSetOpsmethodunionintersection
differencesymmetric_differencec                   \        R R.4      p\        RR.4      p\        P                  ! \        RR7      ;_uu_ 4        \	        W!4      ! V^R7       RRR4       \	        W!4      ! VRR7       R#   + '       g   i     L%; i)abczThe 'sort' keyword only takesmatchsortNT)r   pytestraises
ValueErrorgetattr)selfr   idx1idx2s   &&  r   test_setops_sort_validation+TestIndexSetOps.test_setops_sort_validation   sb     c3Z c3Z ]]:-LMMD!$Q/ N 	d.	 NMs   A00B 	c                   \        . RO\        R7      pVP                  VR,          4      pVR,          p\        P                  ! W#4       VP                  VR,          RRR1,          4      p\        P                  ! W#4       VP                  VR,          RR7      pTp\        P                  ! W#P                  4       VP                  VR,          RR7      p\        P                  ! W#4       VP                  VR,          RRR1,          RR7      p\        P                  ! W#P                  4       VP                  VR,          RRR1,          RR7      p\        P                  ! W#4       R# )   dtype:r-   NNNr!   )r-   r      )	r   objectr   tmassert_index_equal_unionassert_numpy_array_equalvaluesr   )r'   idxresultexpecteds   &   r   !test_setops_preserve_object_dtype1TestIndexSetOps.test_setops_preserve_object_dtype$   s   IV,!!#b'*r7
f/ !!#b'$B$-0
f/CG$/
##FOO<3r7.
f/ CGDbDM5
##FOO<3r74R4=t4
f/r   c                    \        . RO4      pVR,          pVR,          pVP                  V4      p\        . RO4      p\        P                  ! WE4       R# )r   r0   NNN   NNr   r   r-   r   r   r   )r   r-   r   r   r   r   )r   r   r3   r4   r'   indexfirstsecondr9   r:   s   &     r   test_union_baseTestIndexSetOps.test_union_base>   sF    ./b	rV$12
f/r   klassc                    \        . RO4      pVR,          pVR,          pVP                  V! VP                  4      4      p\        WR4      '       g   Q hR# )r   r>   r?   NrA   )r   r   r7   r   )r'   rH   rC   rD   rE   r9   s   &&    r   test_union_different_type_base.TestIndexSetOps.test_union_different_type_baseH   sI     ./b	rU6==12f,,,,r   c                f   \        ^\        P                  ! R4      .4      p\        P                  ! \
        RR7      ;_uu_ 4        VP                  VR,          4      pRRR4       \        P                  ! XV4       \        P                  ! \
        RR7      ;_uu_ 4        VP                  VR,          RR7      pRRR4       \        P                  ! W!4       VP                  VR,          RR7      p\        P                  ! W!4       R#   + '       g   i     L; i  + '       g   i     Lk; i)r-   2000znot supported betweenr   Nr-   NNr!   F)r   pd	Timestampr3   assert_produces_warningRuntimeWarningr   r4   )r'   r8   r9   s   &  r   "test_union_sort_other_incomparable2TestIndexSetOps.test_union_sort_other_incomparableS   s    QV,-.''>UVVYYs2w'F W 	fc* ''>UVVYYs2wTY2F W
f* 3r7/
f* WV WVs   D"D D	 D0	c                    \        ^\        P                  ! R4      .4      p\        P                  ! \
        RR7      ;_uu_ 4        VP                  VR,          RR7       RRR4       R#   + '       g   i     R# ; i)r-   rM   z.*r   rN   Tr!   N)r   rO   rP   r#   r$   	TypeErrorr   r'   r8   s   & r   'test_union_sort_other_incomparable_true7TestIndexSetOps.test_union_sort_other_incomparable_truee   sN    QV,-.]]9D11IIc"gDI) 2111s   A++A<	c                    \        . RO4      p\        . RO4      p\        P                  ! VP                  VRR7      V4       R# )r   Tr!   Nr   r   r   )r   r   r   r   r3   r4   r   )r'   r8   sorted_s   &  r   !test_intersection_equal_sort_true1TestIndexSetOps.test_intersection_equal_sort_truej   s6    O$(
c..s.>Hr   c                    \        . RO4      pVR,          pVR,          pVf   \        . RO4      M\        . RO4      pVP                  WAR7      p\        P                  ! We4       R# )r   r?   Nr0   NNr!   rA   )r   r-   r   r   r   r-   r   r   r3   r4   )r'   r"   rC   rD   rE   r:   r9   s   &&     r   test_intersection_base&TestIndexSetOps.test_intersection_baseo   sU    ./b	r)-5%5;M##F#6
f/r   c                    \        . RO4      pVR,          pVR,          pVP                  V! VP                  4      VR7      p\        We4      '       g   Q hR# )r   r?   ra   r!   NrA   )r   r   r7   r   )r'   rH   r"   rC   rD   rE   r9   s   &&&    r   %test_intersection_different_type_base5TestIndexSetOps.test_intersection_different_type_basey   sP     ./b	r##E&--$8t#Df----r   c                    \        . RO4      P                  RR.4      p\        RR.4      p\        P                  ! W4       R# )r   r   r   N)r   r   r   rc   )r'   r9   r:   s   &  r   test_intersection_nosort(TestIndexSetOps.test_intersection_nosort   s7    '44c3Z@#s$
f/r   c                    \        . RO4      p\        P                  ! VP                  VRR7      V4       \        P                  ! VP                  VRR7      V4       R# )r   Fr!   Nr[   r\   rW   s   & r   test_intersection_equal_sort,TestIndexSetOps.test_intersection_equal_sort   sL    O$
c..s.?E
c..s.>Dr   c                    \        R ^^	4      \        R ^^4      .p\        V\        R7      p\        R.\        R7      pVP                  W1R7      p\	        V4      ^ 8X  g   Q hR# )i  r.   aar!   N)r   r   r2   r   len)r'   r"   dt_datesi1i2r9   s   &&    r   test_intersection_str_dates+TestIndexSetOps.test_intersection_str_dates   sZ    T1a((4B*?@86*D6(/6{ar   zindex2,expected_arrBDAc                    \        . RO4      p\        V4      pVP                  \        V4      VR7      pVf   VP                  4       p\        P                  ! We4       R# )ry   r!   N)ry   rw   ry   C)r   r   sort_valuesr3   r4   )r'   index2expected_arrr"   index1r:   r9   s   &&&&   r   *test_intersection_non_monotonic_non_unique:TestIndexSetOps.test_intersection_non_monotonic_non_unique   sS     +,&$$U6]$><++-H
f/r   c                    \        . RO4      pVR,          pVR,          pVP                  WA4      p\        . RO4      pVf   \        \        V4      4      p\        P                  ! WV4       R# )r   N   Nr>   NrA   rb   )r   r   r   r3   r4   )r'   r"   rC   rD   rE   r9   r:   s   &&     r   test_difference_base$TestIndexSetOps.test_difference_base   s[    ./b	r!!&/%<Yx01H
f/r   c                    \        . RO4      pVR,          pVR,          pVP                  V4      p\        . RO4      p\        P                  ! WE4       R# )r   r   r>   NrA   )r   r-   r   r   r   )r   r   r3   r4   rB   s   &     r   test_symmetric_difference)TestIndexSetOps.test_symmetric_difference   sH    ./b	r++F3,-
f/r   zmethod,expected,sortnumr.   FNc                >   \        \        P                  ! . ROR\        3R.R7      4      p\        \        P                  ! . ROR\        3R.R7      4      p\	        WA4      ! WSR7      pVP
                  ^8X  g   Q h\        V4      p\        P                  ! Wb4       R# )r-   r   r.   r!   Nr-   ry   r   ry   r-   rw   r   rw   letS1)r   r   r   r   r-   r{   r   r{   )r   nparrayintr&   ndimr3   r4   )r'   r   r:   r"   r   r}   r9   s   &&&&   r   test_tuple_union_bug$TestIndexSetOps.test_tuple_union_bug   s    < HH8s|]3
 HHLs|]3
 (;{{a?
f/r   
first_listr   r   second_listz&first_name, second_name, expected_namec                   \        WR 7      p\        W$R 7      pVP                  WR7      p	\        V4      P                  V4      p
VfO   \        V4      ^ 8  d?   \        V4      ^ 8  d/   \        \	        V
4      VR 7      p\
        P                  ! W4       R# \        WR 7      p\
        P                  ! V	P                  4       VP                  4       4       R# ))namer!   N)r   r   setrq   sortedr3   r4   r|   )r'   r   r   
first_namesecond_nameexpected_namer"   rD   rE   r   valsr:   s   &&&&&&&     r   test_union_name_preservation,TestIndexSetOps.test_union_name_preservation   s     j2{5F.:$$[1<C
Oa/C4Dq4HVD\>H!!%2T6H!!%"3"3"5x7K7K7MNr   zdiff_type, expectedc                    \        . RO4      p\        . RO4      p\        W14      ! V4      p\        V4      p\        P                  ! WR4       R# )r   N)r   r-   ry   rw   )r   r   ry   r{   )r   r&   r3   r4   )r'   	diff_typer:   r(   r)   r9   s   &&&   r   test_difference_object_type+TestIndexSetOps.test_difference_object_type   s@     %&%&)$/?
f/r    )r   r   r   r   )rw   rx   ry   r   r   )r   r   r   r   )r   r   r   r   r   r   ))ry   rw   N)Nrw   N)ry   NN)r-   r   rw   r{   ) __name__
__module____qualname____firstlineno__r#   markparametrizer*   r;   rF   r   r   r   listrJ   rS   rX   r^   rd   rg   rj   rm   ru   r   r   r   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s_    [[Q//040 [[Wrxx&>?- @-+$*
I
0 [[Wrxx&>?. @.0
E
  [[*se	c
;<0	0
00 [[ <!3<7  <!3<7  P!3<7 #	
:0;:0( [[\S#J+;<[[]c3Z,<=[[0@O	 > =O  [[
C	!$:<L#MN0	0r   r   )r   numpyr   r#   pandasrO   r   r   pandas._testing_testingr3   pandas.core.algorithmsr   r   r   r   r   r   <module>r      s/         ,.t0 t0r   