+
    yȇi                        ^ RI H t  ^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RIH	t	H
t
Ht ^ RIHt ^ RIHt ^ RIHtHt R tR t]P,                  ! ]]]]
.. ROR	7      R
 4       t ! R R4      t ! R R4      t ! R R4      tR# )    )datetimeN)PYPY)	DataFrameIndexSeries)PandasDelegate)NoNewAttributesMixinPandasObjectc                 ,    \        R V /3/ VB R ,          # )ar   xkwargss   &,s/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/base/test_constructors.pyseries_via_frame_from_dictr      s    c1X((--    c                 (    \        V 3/ VB ^ ,          # )r   r   r   s   &,r   series_via_frame_from_scalarr      s    Q!&!!$$r   )paramsidsc                     V P                   # N)param)requests   &r   constructorr      s     ==r   c                      a  ] tR t^,t o  ! R R4      t ! R R]]4      tR t]	P                  P                  ]RR7      R 4       tR	tV tR
# )TestPandasDelegatec                   T   a  ] tR t^-t o R.tR.tR tR t]! ]]RR7      t	R t
RtV tR	# )
TestPandasDelegate.Delegatorproptest_methodc                    Wn         R # r   r!   )selfvalues   &&r   	_set_prop&TestPandasDelegate.Delegator._set_prop1   s    Ir   c                    V P                   # r   r$   )r%   s   &r   	_get_prop&TestPandasDelegate.Delegator._get_prop4   s    99r   zfoo property)docc                    R# )za test methodN )r%   argsr   s   &*,r   r"   (TestPandasDelegate.Delegator.test_method9   s    r   r$   N)__name__
__module____qualname____firstlineno___properties_methodsr'   r*   propertyr!   r"   __static_attributes____classdictcell____classdict__s   @r   	Delegatorr    -   s7     h!?		 	9.A	  	 r   r<   c                   2   a  ] tR t^<t o V 3R lR ltRtV tR# )TestPandasDelegate.Delegatec                   < V ^8  d   QhRR/# )   returnNr.   )formatr;   s   "r   __annotate__(TestPandasDelegate.Delegate.__annotate__=   s     	 	4 	r   c                    Wn         R # r   obj)r%   rG   s   &&r   __init__$TestPandasDelegate.Delegate.__init__=   s    Hr   rF   N)r1   r2   r3   r4   rH   r8   r9   r:   s   @r   Delegater>   <   s     	 	r   rJ   c                    V P                   P                  V P                  V P                  P                  R R7       V P                   P                  V P                  V P                  P                  RR7       V P                  V P                  4       4      pRp\
        P                  ! \        VR7      ;_uu_ 4        VP                   RRR4       Rp\
        P                  ! \        VR7      ;_uu_ 4        ^Vn        RRR4       Rp\
        P                  ! \        VR7      ;_uu_ 4        VP                   RRR4       R#   + '       g   i     L; i  + '       g   i     L`; i  + '       g   i     R# ; i)r7   )delegate	accessorstypmethodz#You cannot access the property propmatchNzThe property prop cannot be set)	rJ   _add_delegate_accessorsr<   r5   r6   pytestraises	TypeErrorr!   )r%   rL   msgs   &  r   test_invalid_delegation*TestPandasDelegate.test_invalid_delegation@   s   
 	--^^nn00 	. 	

 	--^^t~~/F/FH 	. 	
 ==!123]]9C00MM 1 0]]9C00HM 1 4]]9C00MM 10 10 10 100s$   >E9E/E,E	E)	,E=	znot relevant for PyPy)reasonc                p    V P                  V P                  4       4      p\        P                  ! V4       R # r   )rJ   r<   sys	getsizeof)r%   rL   s   & r   test_memory_usage$TestPandasDelegate.test_memory_usage\   s%    
 ==!12hr   r.   N)r1   r2   r3   r4   r<   r   r
   rJ   rW   rS   markskipifr   r]   r8   r9   r:   s   @r   r   r   ,   sK        >< 8 [[%<=  > r   r   c                   &   a  ] tR t^et o R tRtV tR# )TestNoNewAttributesMixinc                    ! R  R\         4      pV! 4       p\        VR4      '       d   Q hRVn        VP                  R8X  g   Q hVP                  4        R\	        V4      9   g   Q h\        VR4      '       g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        RVn	        RRR4       \        VR4      '       d   Q hR#   + '       g   i     L&; i)c                       ] tR t^gtRtR# ).TestNoNewAttributesMixin.test_mixin.<locals>.Tr.   N)r1   r2   r3   r4   r8   r.   r   r   Tre   g   s    r   rf   __frozentestz You cannot add any new attributerP   Nb)
r	   hasattrr   _freezedirgetattrrS   rT   AttributeErrorri   )r%   rf   trV   s   &   r   
test_mixin#TestNoNewAttributesMixin.test_mixinf   s    	$ 	 C1j))))ssf}}			SV###q*%%%%0]]>55AC 6 1c??""? 65s   !CC	r.   N)r1   r2   r3   r4   rp   r8   r9   r:   s   @r   rb   rb   e   s     # #r   rb   c                   J  a  ] tR t^zt o ]P
                  P                  R]P                  ! R.RR7      ]P                  ! ]	! R^^4      .]
R7      ]P                  ! ]P                  ! RR4      .]
R7      ]P                  ! R.]
R7      .. ROR7      R 4       tR	 tR
 tRtV tR# )TestConstructionr   z
2263-01-01datetime64[D]dtypei  D)r   c                   V! V4      pVP                   P                  R 8X  g(   \        V^ ,          \        P                  4      '       d   VP                   R8X  g   Q hM\        V^ ,          \
        4      '       d$   VP                   R8X  g   Q VP                   4       hMV! V4      pV'       d:   RVP                  P                  P                  9   d   VP                   R8X  g   Q hMVP                   R8X  g   Q h\        P                  ! VP                  4       V4       Rp\        P                  ! \        P                  P                   VR7      ;_uu_ 4        V! VRR	7       R
R
R
4       R
#   + '       g   i     R
# ; i)MzM8[s]zM8[us]object-stringstringobjectz4Out of bounds|Out of bounds .* present at position 0rP   zdatetime64[ns]ru   N)rv   kind
isinstancenp
datetime64r   nodecallspecidtmassert_numpy_array_equalto_numpyrS   rT   pderrorsOutOfBoundsDatetime)r%   r   r   r   using_infer_stringresultrV   s   &&&&&  r   $test_constructor_datetime_outofbound5TestConstruction.test_constructor_datetime_outofbound~   s   . Q77<<3*QqT2=="A"A<<7***!h''<<8+9V\\9+ ^F!o9N9N9Q9Q&Q||x///||x///''(91= E]]29988DD!12 EDDDs   E//F 	c                   \         P                  ! R .RR7      p\        P                  P                  P
                  P                  W"P                  R7      pV! V4      pVP                  VP                  8X  g   Q hV! V4      p\        P                  ! WT4       RVP                  n        V! V4      p\        P                  ! WT4       R# )z2020-01-01T00:00:00.000000zdatetime64[us]ru   FN)r   arrayr   corearraysDatetimeArray_simple_newrv   r   assert_equalflags	writeable)r%   r   arrdtaexpectedr   s   &&    r   test_constructor_datetime_nonns0TestConstruction.test_constructor_datetime_nonns   s    hh45=MNggnn**66s))6Ls#~~***S!
) $		S!
)r   c                   R ^R^/pV! VP                  4       RR7      pV'       d   VP                  R8X  g   Q hMVP                  R8X  g   Q hV! \        VP                  4       4      RR7      p\        P                  ! WE4       R# )r   ri   strru   r|   N)keysrv   listr   r   )r%   r   r   dr   r   s   &&&   r   test_constructor_from_dict_keys0TestConstruction.test_constructor_from_dict_keys   sk    !S!QVVXU3<<5(((<<8+++tAFFH~U;
)r   r.   N)rt   zobject-datetime.datetimezobject-numpy-scalarrz   )r1   r2   r3   r4   rS   r_   parametrizer   r   r   r|   r   r   r   r   r8   r9   r:   s   @r   rs   rs   z   s      [[HHl^?;HHhtQ*+6:HHbmmL#67vFHHl^62		

  338*	* 	*r   rs   )r   zDataFrame-dictzDataFrame-arrayr   )r   r[   numpyr   rS   pandas.compatr   pandasr   r   r   r   pandas._testing_testingr   pandas.core.accessorr   pandas.core.baser	   r
   r   r   fixturer   r   rb   rs   r.   r   r   <module>r      s     
     
  /.% "$	 	A6  6 r# #*F* F*r   