+
    yȇi                        ^ RI t ^ RIt^ RIt^ RIHtHtHt ^ RIH	t	H
t
 ^ RIHt ]P                  P                  R]P                   ! ^R4      R!3]	! R"R7      R#3]	! R"R7      P#                  4       R#3]	! RR7      R	3]	! R
RRR7      ^o3]	! ^R
RRR7      R$3]
P$                  ! ^}4      ^}3.4      R 4       tR tR t]P                  P                  RRR.4      R 4       tR t]P                  P                  RR^/R^R^/R^/.4      R 4       t ! R R4      t]P                  P                  R. R%O4      R 4       t]P                  P                  R. R&O4      R  4       tR# )'    N)array_to_timedelta64delta_to_nanosecondsints_to_pytimedelta)	Timedeltaoffsetszobj,expectedD)minutesgBY>)seconds  g&.>gh㈵>g?)r
   millisecondsmicroseconds)daysr
   r   r   c                 ,    \        V 4      pW!8X  g   Q hR # )N)r   )objexpectedresults   && s/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/tslibs/test_timedeltas.pytest_delta_to_nanosecondsr      s    & "#&F    c                  z   \         P                  ! R .RR7      p \        P                  ! \        RR7      ;_uu_ 4        \        V 4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \        R4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \        ^4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \        \         P                  ! ^4      4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \        \         P                  ! ^4      4       RRR4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)	i[zm8[ns]dtypez<class 'numpy.ndarray'>matchNfloatg      ?int)nparraypytestraises	TypeErrorr   int64int32)r   s    r   test_delta_to_nanoseconds_errorr$   *   s    
((I;h
/C	y(A	B	BS! 
C 
y	0	0S! 
1	y	.	.Q 
/	y	.	.RXXa[) 
/	y	.	.RXXa[) 
/	. 
C	B	B 
1	0	.	.	.	.	.	.	.s;   E6E0.F& F2 F)E-	0F 	F	F&	)F:	c                     R p \         P                  ! RR4      p\        P                  ! \        V R7      ;_uu_ 4        \        V4       RRR4       \         P                  ! RR4      p\        P                  ! \        V R7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     La; i  + '       g   i     R# ; i)zadelta_to_nanoseconds does not support Y or M units, as their duration in nanoseconds is ambiguousr   Yr   NM)r   timedelta64r   r    
ValueErrorr   )msgtds     r   (test_delta_to_nanoseconds_td64_MY_raisesr,   :   s    	8 
 
c	"B	z	-	-R  
. 
c	"B	z	-	-R  
.	- 
.	-
 
.	-	-s   B#B6#B3	6C	unitr&   r'   c                     \         P                  ! \        R V  R2R7      ;_uu_ 4        \        \        P
                  ! ^V 4      4       RRR4       R#   + '       g   i     R# ; i)zUnit z is not supported. Only unambiguous timedelta values durations are supported. Allowed units are 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns'r   N)r   r    r)   r   r   r(   r-   s   &r   !test_unsupported_td64_unit_raisesr0   K   sU     
dV F F
 
 	"..D)*
 
 
 
s   !AA%	c                  t    \        \        R 4      4      R 8X  g   Q h\        \        R R7      4      R 8X  g   Q hR# )g    _B)nanosecondsN)r   r    r   r   test_huge_nanoseconds_overflowr4   W   s1    	$0D888	d ;<DDDr   kwargsSecondsr
   NanosecondsFooc                    R p\         P                  ! \        \        P                  ! V4      R7      ;_uu_ 4        \        R/ V B  RRR4       \         P                  ! \        \        P                  ! V4      R7      ;_uu_ 4        \        ^RR7       RRR4       R#   + '       g   i     L`; i  + '       g   i     R# ; i)zcannot construct a Timedelta from the passed arguments, allowed keywords are [weeks, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds]r   Nhours)unitsr3   )r   r    r)   reescaper   )r5   err_messages   & r   test_kwarg_assertionr?   ]   s    
	3  
z;)?	@	@F 
A 
z;)?	@	@!7# 
A	@ 
A	@ 
A	@	@s   BB2B/	2C	c                   ,   a  ] tR t^pt o R tR tRtV tR# )TestArrayToTimedelta64c                    \         P                  ! R ^.^R..\        R7      p\        P                  ! \
        RR7      ;_uu_ 4        \        VRR7       RRR4       R#   + '       g   i     R# ; i)14r   zunit must not be specifiedr   sr/   N)r   r   objectr   r    r)   r   )selfvaluess   & r   4test_array_to_timedelta64_string_with_unit_2d_raisesKTestArrayToTimedelta64.test_array_to_timedelta64_string_with_unit_2d_raisesq   sM     C8aX.f=]]:-IJJ c2 KJJJs   AA0	c                    \         P                  ! ^4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)   z'values' must have object dtyper   N)r   aranger   r    r!   r   )rG   rH   r*   s   &  r   +test_array_to_timedelta64_non_object_raisesBTestArrayToTimedelta64.test_array_to_timedelta64_non_object_raisesx   s<    1/]]9C00 ( 1000s   AA$	r3   N)__name__
__module____qualname____firstlineno__rI   rN   __static_attributes____classdictcell__)__classdict__s   @r   rA   rA   p   s     3) )r   rA   c                    \         P                  ! ^\         P                  R7      P                  RV  R24      p\	        VRR7      pVP                  \        4      p\        P                  ! W#4       \	        VRR7      p\         P                  ! V Uu. uF  p\        V4      NK  	  up\        R7      p\        P                  ! W#4       R# u upi )   r   m8[]FboxTN)r   rM   r"   viewr   astyperF   tmassert_numpy_array_equalr   r   )r-   arrresr   xs   &    r   test_ints_to_pytimedeltard      s     ))ARXX
&
+
+c$qM
:C
cu
-C zz&!H.
ct
,Cxxs3s!1s36BH. 4s   Cc                    \         P                  ! ^\         P                  R7      P                  RV  R24      p\        P
                  ! \        RR7      ;_uu_ 4        \        VRR7       RRR4       R	p\        P
                  ! \        VR7      ;_uu_ 4        \        VR
R7       RRR4       R#   + '       g   i     LN; i  + '       g   i     R# ; i)rX   r   rY   rZ   z\d{1,2}r   Fr[   Nz4Only resolutions 's', 'ms', 'us', 'ns' are supportedT)r   rM   r"   r]   r   r    NotImplementedErrorr   )r-   ra   r*   s   &  r   $test_ints_to_pytimedelta_unsupportedrg      s    
))ARXX
&
+
+c$qM
:C	**	=	=CU+ 
>
@C	*#	6	6CT* 
7	6 
>	= 
7	6	6s   B2C2C	C	g  H0Cig   |rXgS$B)rE   msus)r&   r'   psfsas)r<   numpyr   r   pandas._libs.tslibs.timedeltasr   r   r   pandasr   r   pandas._testing_testingr_   markparametrizer(   to_pytimedeltaNanor   r$   r,   r0   r4   r?   rA   rd   rg   r3   r   r   <module>rv      s   	     	C	 "67	2	.	2		-	-	/?	7	#T*dDI	

 1dDQ	
 
c	C $%$
* !" #s,+ -+E 	1~	1mQ?%L$$ ) )" !23/ 4/ !=>+ ?+r   