
    
3j^                    H   S SK Jr  S SKJr  S SKrS SKrS SKJrJr  S SKr	S SK
r
S SKrS SKJr  \R                  (       a  S SKJr  \" S5      rS r\
R$                  R'                  S	/ S
Q5            SS j5       rSS jrS rSS jrSS jrSS jrSS jrSS jrSS jrg)    )annotations)CallableN)AnyTypeVar)_api)SelfTc                 p    " S S5      n  " S SU 5      nU" 5       n[         R                  " [        R                  SS9   UR	                  5         S S S 5        [         R                  " [        R                  SS9   UR                  5         S S S 5        g ! , (       d  f       NK= f! , (       d  f       g = f)Nc                       \ rS rSrS rS rSrg)%test_unsupported_method.<locals>.Base   c                    g N selfs    S/home/wildlama/miniconda3/lib/python3.13/site-packages/matplotlib/tests/test_api.pymethod_1.test_unsupported_method.<locals>.Base.method_1           c                    g r   r   r   s    r   method_2.test_unsupported_method.<locals>.Base.method_2   r   r   r   N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   Baser      s    		r   r    c                  V    \ rS rSr\R
                  " 5       r\R
                  " SS9rSrg)&test_unsupported_method.<locals>.Child   zSorry!)append_messager   N)	r   r   r   r   r   unsupported_methodr   r   r   r   r   r   Childr"      s     **,**(Cr   r&   z%^Child does not support 'method_1'\.$matchz,^Child does not support 'method_2'\. Sorry!$)pytestraisesr   UnsupportedErrorr   r   )r    r&   childs      r   test_unsupported_methodr-      s     D D GE	t,,E
G
G 
t,,L
N
N 
N
G 
G
N 
Ns    B<B'
B$'
B5ztarget,shape_repr,test_shape))r   z(N,))      )Nr/   (N, 3))r.   )r0   r1   )r.      ))r.      z(1, 5))r.   	   ))Nr2   Nz	(M, 2, N))r.   r/   r.   c           	        S[         R                  " S[        U 5       SU SU 35      -   n[        R                  " U5      n[
        R                  " [        US9   [        R                  " XS9  S S S 5        g ! , (       d  f       g = f)N^z'aardvark' must be zD with shape z, but your input has shape r'   )aardvark)
reescapelennpzerosr)   r*   
ValueErrorr   check_shape)target
shape_repr
test_shapeerror_patterndatas        r   test_check_shaperD   *   sr     "))
c&k]-
| DL	"# #M 88JD	z	7/ 
8	7	7s   A99
Bc                 N    " S S5      n [         R                  " [        R                  5         U R                    S S S 5        [         R                  " [        R                  5         U " 5       nUR                    S S S 5        g ! , (       d  f       NO= f! , (       d  f       g = f)Nc                  f    \ rS rSr\R
                  " S5      \R                  SS j5       5       rSrg))test_classproperty_deprecation.<locals>.A=   z0.0.0c                    g r   r   )clss    r   f+test_classproperty_deprecation.<locals>.A.f>   s     r   r   N)rJ   r   returnNone)	r   r   r   r   r   
deprecatedclasspropertyrK   r   r   r   r   ArG   =   s+    		!				 
 
"	r   rQ   )r)   warnsmplMatplotlibDeprecationWarningrK   )rQ   as     r   test_classproperty_deprecationrV   <   sd     
 
c66	7	 
8	c66	7C	 
8	7 
8	7	7	7s   B(B
B
B$c                    [         R                  " [        R                  SS9   [        R
                  " SSS9  S S S 5        [         R                  " [        R                  SS9   [        R
                  " SSSS9  S S S 5        [         R                  " [        R                  S	S9   [        R
                  " SSS
S9  S S S 5        [         R                  " [        R                  SS9   [        R
                  " SSSS9  S S S 5        [         R                  " [        R                  SS9   [        R
                  " SSSS9  S S S 5        [         R                  " [        R                  SS9   [        R
                  " SSSS9  S S S 5        [         R                  " [        SS9   [        R
                  " SSSS9  S S S 5        [         R                  " [        SS9   [        R
                  " SSSSS9  S S S 5        [         R                  " [        R                  SS9   [        R
                  " SSSS
SSSS9  S S S 5        g ! , (       d  f       GN= f! , (       d  f       GN= f! , (       d  f       GN= f! , (       d  f       GN= f! , (       d  f       GNQ= f! , (       d  f       GN!= f! , (       d  f       N= f! , (       d  f       N= f! , (       d  f       g = f)NzEfoo was deprecated in Matplotlib 3\.10 and will be removed in 3\.12\.r'   z3.10foo)namezOThe foo class was deprecated in Matplotlib 3\.10 and will be removed in 3\.12\.class)rY   obj_typezWfoo was deprecated in Matplotlib 3\.10 and will be removed in 3\.12\. Use bar instead\.bar)rY   alternativezXfoo was deprecated in Matplotlib 3\.10 and will be removed in 3\.12\. More information\.zMore information.)rY   addendumzDfoo was deprecated in Matplotlib 3\.10 and will be removed in 4\.0\.z4.0)rY   removalz(foo was deprecated in Matplotlib 3\.10\.Fz*foo will be deprecated in a future versionT)rY   pendingzcannot have a scheduled removalz3.12)rY   r`   r_   zComplete replacement)messagerY   r]   r^   r[   r_   )	r)   rR   rS   rT   r   warn_deprecatedPendingDeprecationWarningr*   r=   r   r   r   test_warn_deprecatedrd   I   s7   	c662
3 	V%0
3 
c66:
; 	V%'B
; 
c66D
E 	V%UC
E 
c66E
F 	V%:MN
F 
c661
2 	V%?
2 
c66G
IV%?
I 
/I
KV%>
K 
z)K	LV%vN 
M	c66>U	VV-C%).9L&-u	> 
W	V9
3 
3
; 
;
E 
E
F 
F
2 
2
I 
I
K 
K 
M	L	V	Vsk   I%I'I()I:+J-J%J0K K
I
I%(
I7:
J	
J
J-0
J>
K
K c                     " S S5      n U " 5       n[         R                  " [        R                  5         UR                  S:X  d   e S S S 5        [         R                  " [        R                  5         SUl        S S S 5        [         R                  " [        R                  5         UR                  S:X  d   e S S S 5        [         R                  " [        R                  5         UR                  S5      S:X  d   e S S S 5        g ! , (       d  f       N= f! , (       d  f       N= f! , (       d  f       Nv= f! , (       d  f       g = f)Nc                      \ rS rSr% SS jrSS jr\R                  " S5      rS\	S'   \R                  " S5      r
S\	S'   S	rg
)-test_deprecate_privatize_attribute.<locals>.Cm   c                    SU l         g )Nr.   _attrr   s    r   __init__6test_deprecate_privatize_attribute.<locals>.C.__init__n   s    DJr   c                    U$ r   r   )r   args     r   _meth3test_deprecate_privatize_attribute.<locals>.C._metho   s    Sjr   z0.0intattrr   methrj   NrM   rN   )ro   r	   rM   r	   )r   r   r   r   rl   rp   r   deprecate_privatize_attributers   __annotations__rt   r   r   r   r   Crg   m   s2    2066u=c=;;EBhBr   rx   r.   r2   *   )r)   rR   rS   rT   rs   rt   )rx   cs     r   "test_deprecate_privatize_attributer{   l   s    C C 	
A	c66	7vv{{ 
8	c66	7 
8	c66	7vv{{ 
8	c66	7vvbzR 
8	7 
8	7	7	7	7	7	7	7s/   D6D*D.*D?
D
D+.
D<?
Ec                   ^ [         R                  " SS5      SS	S jj5       m[         R                  " SS5      S
S j5       n TU 4 H=  nU" 5         [        R                  " [        R
                  5         U" SS9  S S S 5        M?     [         R                  R                  4S	U4S jjjnU" 5         [        R                  " [        R
                  5         W" SS9  S S S 5        g ! , (       d  f       M  = f! , (       d  f       g = f)N3.0rX   c                    g r   r   rX   s    r   func1$test_delete_parameter.<locals>.func1       r   c                     g r   r   )kwargss    r   func2$test_delete_parameter.<locals>.func2   r   r   r\   r   c                   > T" U 5        g r   r   )rX   r   s    r   pyplot_wrapper-test_delete_parameter.<locals>.pyplot_wrapper   s
    c
r   r   )rX   r   rM   rN   )r   r   rM   rN   )r   delete_parameterr)   rR   rS   rT   deprecation_deprecated_parameter)r   funcr   r   s      @r   test_delete_parameterr   ~   s    	5%( ) 
5%( ) \\#::;UO <; 
 #'"2"2"H"H   	c66	7 
8	7 <; 
8	7s   4C%C7%
C4	7
Dc                 r   [         R                  " SS5      SS	S jj5       n U " SSS9  [        R                  " [        R
                  5         U " SS5        S S S 5        [        R                  " [        R
                  5         U " SSS5        S S S 5        g ! , (       d  f       NF= f! , (       d  f       g = f)
Nr}   ro   c                    g r   r   )prero   posts      r   r   $test_make_keyword_only.<locals>.func   r   r   r.   r2   )ro   r/   r   )r   r   ro   r   r   r   rM   rN   )r   make_keyword_onlyr)   rR   rS   rT   )r   s    r   test_make_keyword_onlyr      s    	E5) * 	N	c66	7Q
 
8	c66	7Q1 
8	7 
8	7	7	7s   
BB(
B%(
B6c                     Sn [         R                  " SU S9SS j5       nUR                  c  [        R                  " S5        XR                  ;   d   eg )Nz)`.f1`, `f2`, `f3(x) <.f3>` or `f4(x)<f4>`1)r]   c                     g r   r   r   r   r   rK   'test_deprecation_alternative.<locals>.f   r   r   zDocumentation is disabledru   )r   rO   __doc__r)   skip)r]   rK   s     r   test_deprecation_alternativer      sK    =K	__Sk2 3yy/0))###r   c                     [         R                  " [        SS9   [        R                  " S/5        S S S 5        g ! , (       d  f       g = f)NzNo argument to check!r'   rU   )r)   r*   	TypeErrorr   check_in_listr   r   r   test_empty_check_in_listr      s.    	y(?	@C5! 
A	@	@s	   ;
A	c                     [         R                  " [        SS9   [        R                  " SS/[
        R                  " S5      S9  S S S 5        g ! , (       d  f       g = f)Nzarray\(5\) is not a valid valuer'   rU   br3   )value)r)   r*   r=   r   r   r;   arrayr   r   r   test_check_in_list_numpyr      s:    	z)K	LC:RXXa[9 
M	L	Ls   ,A
A)r?   ztuple[int | None, ...]r@   strrA   ztuple[int, ...]rM   rN   ru   )
__future__r   collections.abcr   r8   typingr   r   numpyr;   r)   
matplotlibrS   r   TYPE_CHECKINGr   r	   r-   markparametrizerD   rV   rd   r{   r   r   r   r   r   r   r   r   <module>r      s    " $ 	       
CL* 70!$0!005900
 >F $,
$"
:r   