+
    xȇi                        R t ^ RIHt ^ RIt^ RIt^ RIHt ^ RIt^ RI	H
t
 ^ RIt^ RIHtHt ^ RIHt ]'       d   ^ RIHt  ! R R	]
4      t ! R
 R]4      tR R ltR# )zp
Test extension array for storing nested data in a pandas container.

The ListArray stores an ndarray of lists.
)annotationsN)TYPE_CHECKING)ExtensionDtype)is_object_dtypeis_string_dtype)ExtensionArray)type_tc                  B    ] tR t^t]tRt]P                  t	R R lt
RtR# )	ListDtypelistc                   V ^8  d   QhRR/# )   returnztype_t[ListArray] )formats   "q/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/extension/list/array.py__annotate__ListDtype.__annotate__!   s      &7     c                    \         # )zI
Return the array type associated with this dtype.

Returns
-------
type
)	ListArrayselfs   &r   construct_array_typeListDtype.construct_array_type!   s
     r   r   N)__name__
__module____qualname____firstlineno__r   typenamenpnanna_valuer   __static_attributes__r   r   r   r
   r
      s    DDvvH r   r
   c                      ] tR t^,t]! 4       tRtRR R llt]RRRR/R l4       t	R	 t
R
 R ltR tRR ltR tRR lt]R 4       tRtR# )r   i  NFc                   V ^8  d   QhRR/# )r   r   Noner   )r   s   "r   r   ListArray.__annotate__0   s      $ r   c                	^   \        V\        P                  4      '       g   \        R 4      hV Fu  p\        W@P                  P
                  4      '       d   K*  \        P                  ! V4      '       d   KH  \        R\        V P                  P
                  4      ,           4      h	  Wn	        R# )z$Need to pass a numpy array as valueszAll values must be of type N)

isinstancer!   ndarray	TypeErrordtyper   pdisnastrdata)r   valuesr-   copyvals   &&&& r   __init__ListArray.__init__0   sm    &"**--BCCCc::??33BGGCLL =DJJOO@T TUU  	r   r-   r3   c               	d    \         P                  ! \        V4      \        R 7      pWR&   V ! V4      # )r-   NNN)r!   emptylenobject)clsscalarsr-   r3   r1   s   &&$$ r   _from_sequenceListArray._from_sequence8   s'    xxGF3Q4yr   c                	    \        V\        P                  4      '       d   V P                  V,          # \	        V 4      ! V P                  V,          4      # N)r*   numbersIntegralr1   r   )r   items   &&r   __getitem__ListArray.__getitem__>   s<    dG,,--99T?" :diio..r   c                   V ^8  d   QhRR/# )r   r   intr   )r   s   "r   r   r(   E   s       r   c                	,    \        V P                  4      # rB   )r;   r1   r   s   &r   __len__ListArray.__len__E   s    499~r   c           	     	    \         P                  ! V P                   Uu. uF6  p\        V\        4      '       * ;'       d    \         P
                  ! V4      NK8  	  up\        R 7      # u upi )r8   )r!   arrayr1   r*   r   isnanbool)r   xs   & r   r/   ListArray.isnaH   sL    xx>BiiHiAt$$44!4iHPT
 	
Hs    A( A(c                	   \         P                  ! V4      pR pV'       df   Vf   V P                  P                  pVR8  P	                  4       '       d   \
        h V Uu. uF  qUR8w  d   V P                  V,          MTNK   	  ppM" V Uu. uF  qPP                  V,          NK  	  ppV P                  V4      # u upi   \         d   p\        T4      ThRp?ii ; iu upi   \         d   p\        T4      ThRp?ii ; i)zIIndex is out of bounds or cannot do a non-empty take from an empty array.N)	r!   asarrayr-   r#   any
ValueErrorr1   
IndexErrorr?   )r   indexer
allow_fill
fill_valuemsglocoutputerrs   &&&&    r   takeListArray.takeM   s     **W%W 	 !!ZZ00
"!!##  /KRKRCRiDIIcNZ?7  /4;<GS))C..G< ""6**  / o3./ = / o3./sT   B> $B9B> C" C&C" 9B> >C	CCC" "C>-C99C>c                	F    \        V 4      ! V P                  R ,          4      # )r9   )r   r1   r   s   &r   r3   ListArray.copyj   s    Dz$))A,''r   c                	   \        V\        V P                  4      4      '       d+   WP                  8X  d   V'       d   V P                  4       # V # \	        V4      '       dM   \        V4      '       g<   \        P                  ! V P                   Uu. uF  p\        V4      NK  	  upVR 7      # V'       g#   \        P                  ! V P                  VR 7      # \        P                  ! V P                  WR7      # u upi )r8   )r-   r3   )r*   r   r-   r3   r   r   r!   rN   r1   r0   rU   )r   r-   r3   rQ   s   &&& r   astypeListArray.astypem   s    eT$**-..5JJ3Fyy{"KU##OE,B,B88TYY7YSVY7uEE::diiu5588DIIU>>	 8s   C9c                	z    \         P                  ! V Uu. uF  q"P                  NK  	  up4      pV ! V4      # u upi rB   )r!   concatenater1   )r=   	to_concatrQ   r1   s   &&  r   _concat_same_typeListArray._concat_same_typez   s0    ~~y9y!vvy9:4y :s   8)r1   )NF)FN)T)r   r   r   r   r
   r-   __array_priority__r5   classmethodr?   rF   rK   r/   r`   r3   re   rj   r$   r   r   r   r   r   ,   sh    KE d   
/

+:(?  r   r   c                   V ^8  d   QhRR/# )r   nrI   r   )r   s   "r   r   r      s       r   c                h   \         P                  P                  ^4      p\         P                  ! V \        R7      p\        V 4       Uu. uFS  p\        VP                  ^ ^
4      4       Uu. uF*  q1P                  \        \        P                  4      4      NK,  	  upNKU  	  upVR&   V# u upi u upi )r   r8   r9   )r!   randomdefault_rngr:   r<   rangeintegerschoicer   stringascii_letters)ro   rngr1   _s   &   r   	make_datarz      s    
))


"C88AV$D qA :?s||Ar?R9ST9SAD--.	/9STDG K 	Us   	"B/+0B*
B/*B/)__doc__
__future__r   rC   rv   typingr   numpyr!   pandas.core.dtypes.baser   pandasr.   pandas.api.typesr   r   pandas.core.arraysr   pandas._typingr   r
   r   rz   r   r   r   <module>r      sQ    #      2  .%  Q Qhr   