+
    yȇi                     j    ^ RI HtHt ^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt  ! R R4      tR# )	    )given
strategiesN)lib)iNaT)OutOfBoundsTimedelta)	Timedeltac                     a  ] tR t^t o ]P
                  P                  R. RO4      R 4       tR tR t	]P
                  P                  ]! ]P                  ! ]^,           ]P                   R7      R7      ]P
                  P                  R]P$                  ]P&                  ]P(                  .4      R 4       4       4       tR	 tR
tV tR# )TestTimedeltaRoundz
freq,s1,s2c                    \        V4      p\        V4      p\        R 4      p\        R4      pVP                  V4      pWb8X  g   Q hVP                  V4      pWs8X  g   Q hR# )1 days 02:34:56.789123456-1 days 02:34:56.789123456N)r   round)selffreqs1s2t1t2r1r2s   &&&&    ڀ/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/scalar/timedelta/methods/test_round.py
test_roundTestTimedeltaRound.test_round   sX    : r]r]2334XXd^xxXXd^xx    c                    \        R 4      pR FC  w  r#\        P                  ! \        VR7      ;_uu_ 4        VP	                  V4       RRR4       KE  	  R#   + '       g   i     KZ  ; i)r   matchN))YEz,<YearEnd: month=12> is a non-fixed frequency)MEz#<MonthEnd> is a non-fixed frequency)foobarzInvalid frequency: foobar)r   pytestraises
ValueErrorr   )r   r   r   msgs   &   r   test_round_invalid%TestTimedeltaRound.test_round_invalid7   sM    23
ID
 z55 65

 655s   AA(c                F   \         P                  P                  R 4      p\         P                  \        ^R7      ,           \        R4      ,
          pW8X  g   Q h\         P                  P	                  R 4      p\         P                  \        R4      ,
          pW8X  g   Q hRp\
        P                  ! \        VR7      ;_uu_ 4        \         P                  P	                  R 4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        \         P                  P                  R 4       RRR4       Rp\
        P                  ! \        VR7      ;_uu_ 4        \         P                  P                  R 4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        \         P                  P                  R 4       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)s)secondsii2zICannot round -106752 days \+00:12:43.145224193 to freq=s without overflowr   NzFCannot round 106751 days 23:47:16.854775807 to freq=s without overflow)	r   minceilmaxfloorr!   r"   r   r   )r   resultexpectedr$   s   &   r    test_round_implementation_bounds3TestTimedeltaRound.test_round_implementation_boundsB   sS    ##C(==9Q#77)I:NN!!!$$S)==9Y#77!!! Y 	 ]]/s;;MM$ <]]/s;;MM$ < W]]/s;;MMs# <]]/s;;MM$ <; <;;; <;;;;s0    G G)  G<, HG&	)G9	<H	H 	)	min_value	max_value)valmethodc                
  aaa \         o\        o\        P                  ! V4      pS! V4      pVVV3R  lp^pV! W5R4       RpV! W5R4       RpV! W5R4       RpV! W5R4       RpV! W5R4       RpV! W5R	4       RpV! W5R
4       R# )c                   < V^8X  d   EM\        V P                  V4      w  r4\        W,
          4      pV P                  V,
          pW`P                  8:  g   Q hV P                  V,           pWpP                  8  g   Q hRpV^ 8X  d   EMbSSP                  J dQ   VSP                  P                  8  d4   \
        P                  ! SVR7      ;_uu_ 4        S! W4       RRR4       R# EMSSP                  J dP   VSP                  P                  8  d4   \
        P                  ! SVR7      ;_uu_ 4        S! W4       RRR4       R# MWE8  dP   VSP                  P                  8  d4   \
        P                  ! SVR7      ;_uu_ 4        S! W4       RRR4       R# MNVSP                  P                  8  d4   \
        P                  ! SVR7      ;_uu_ 4        S! W4       RRR4       R# S! W4      p	W,
          p
\        V
P                  4      pWQ8  g   Q hV	P                  V,          ^ 8X  g   Q hSSP                  J d   WQ^,          8:  g   Q hR# SSP                  J d   W8:  g   Q hR# SSP                  J d   W8  g   Q hR# R#   + '       g   i     R# ; i  + '       g   i     R# ; i  + '       g   i     R# ; i  + '       g   i     R# ; i)   zwithout overflowr   N)divmod_valueintr+   r,   r!   r"   r-   r*   absr   )tsnanosunitdivmoddifflbubr$   restdclserr_clsr5   s   &&&        r   checker5TestTimedeltaRound.test_round_sanity.<locals>.checkerg   s!   z!"))U35;'YY_YY&YY%II~%~(!8sxx'CGGNN*#]]7#>>"2, ? + syy(CGGNN*#]]7#>>"2, ? + [CGGNN*#]]7#>>"2, ? + #''..(wc::r( ;"CBryy>D<<::%***"qy(((399$y y388#y y $; ?> ?> ?>::s0   	J	4	J		J1	K	J	J.	1K	K	nsi  usi@B msi ʚ;r(   r*   hDNl    Xp7 l     qal     "R: )r   r   npint64)r   r4   r5   rF   rI   r>   rG   rH   s   &&f   @@r   test_round_sanity$TestTimedeltaRound.test_round_sanity[   s     &hhsmX0	!d 4 4 4 3"5!'3,3r   c                   \        R 4      P                  V4      pVP                  R4      pV\        R4      8X  g   Q hVP                  VP                  8X  g   Q hVP	                  R4      pV\        R4      8X  g   Q hVP                  VP                  8X  g   Q hVP                  R4      pV\        R4      8X  g   Q hVP                  VP                  8X  g   Q hR# )1 days 02:34:57r*   1 days 02:35:00z1 days 02:34:00N)r   as_unitr   _cresor-   r+   )r   r?   rF   rE   s   &&  r   test_round_non_nano&TestTimedeltaRound.test_round_non_nano   s    ()11$7hhuoi 12222zzRYY&&&hhuoi 12222zzRYY&&&ggeni 12222zzRYY&&&r    N)
)rK   r   r   )rL   z1 days 02:34:56.789123000z-1 days 02:34:56.789123000)rM   z1 days 02:34:56.789000000z-1 days 02:34:56.789000000)r(   rU   z-1 days 02:34:57)2sz1 days 02:34:56z-1 days 02:34:56)5sz1 days 02:34:55z-1 days 02:34:55)r*   rV   z-1 days 02:35:00)12minz1 days 02:36:00z-1 days 02:36:00)rN   z1 days 03:00:00z-1 days 03:00:00)rO   z1 daysz-1 days)__name__
__module____qualname____firstlineno__r!   markparametrizer   r%   r0   slowr   stintegersr   r   i8maxr   r   r-   r+   rR   rY   __static_attributes____classdictcell__)__classdict__s   @r   r
   r
      s     [[	
8	98		%2 [[
r{{TAXCD[[9??IOOY^^DL  E 
L \' 'r   r
   )
hypothesisr   r   rf   numpyrP   r!   pandas._libsr   pandas._libs.tslibsr   pandas.errorsr   pandasr   r
   r[   r   r   <module>rr      s*       $ . l' l'r   