§
    µ³ÙgÕ  ã                   ó  — d Z ddlZddlZddlmZmZ ddlmZ ej        j	        dk    Z
dZdZdZd	Zeeed
œZdZd„ Zd„ Zd„ Zej                             e
d¬¦  «        d„ ¦   «         Zej                             e
d¬¦  «        d„ ¦   «         ZdS )z@ Some tests for the documenting decorator and support functions é    N)Úassert_equalÚsuppress_warnings)Údocceré   zBDocstring
    %(strtest1)s
        %(strtest2)s
     %(strtest3)s
z Another test
   with some indentzAnother test, one linez(    Another test
       with some indent)Ústrtest1Ústrtest2Ústrtest3z|Docstring
    Another test
       with some indent
        Another test, one line
     Another test
       with some indent
c                  ó’  — t          ¦   «         5 } |                      t          ¬¦  «         t          t	          j        t          ¦  «        t          ¦  «         t          t	          j        t          ¦  «        t          ¦  «         t          t	          j        t          ¦  «        t          ¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )N©Úcategory)	r   ÚfilterÚDeprecationWarningr   r   Úunindent_stringÚ
param_doc1Ú
param_doc2Ú
param_doc3)Úsups    úR/granary/edev/quantum/lib/python3.11/site-packages/scipy/_lib/tests/test_doccer.pyÚtest_unindentr   +   sè   € Ý	Ñ	Ô	ð E Ø�
Š
Õ.ˆ
Ñ/Ô/Ð/Ý•VÔ+­JÑ7Ô7½ÑDÔDÐDÝ•VÔ+­JÑ7Ô7½ÑDÔDÐDÝ•VÔ+­JÑ7Ô7½ÑDÔDÐDð	Eð Eð Eñ Eô Eð Eð Eð Eð Eð Eð Eð Eøøøð Eð Eð Eð Eð Eð Es   �B B<Â<C ÃC c                  ó€  — t          ¦   «         5 } |                      t          ¬¦  «         t          j        t
          ¦  «        }d d d ¦  «         n# 1 swxY w Y   t          |d         t
          d         ¦  «         t          |d         t
          d         ¦  «         t          |d         t
          d         ¦  «         d S )Nr   r   r   r	   )r   r   r   r   Úunindent_dictÚdoc_dictr   )r   Úd2s     r   Útest_unindent_dictr   3   sØ   € Ý	Ñ	Ô	ð , Ø�
Š
Õ.ˆ
Ñ/Ô/Ð/ÝÔ!¥(Ñ+Ô+ˆð,ð ,ð ,ñ ,ô ,ð ,ð ,ð ,ð ,ð ,ð ,øøøð ,ð ,ð ,ð ,õ ��J”¥¨*Ô!5Ñ6Ô6Ð6Ý��J”¥¨*Ô!5Ñ6Ô6Ð6Ý��J”¥¨*Ô!5Ñ6Ô6Ð6Ð6Ð6s   �5AÁAÁAc                  ór  — t          ¦   «         5 } |                      t          ¬¦  «         t          j        t
          ¦  «        }t          j        t          |¦  «        }t          |t          ¦  «         d}t          j        |t
          ¦  «        }t          |d¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )Nr   zSingle line doc %(strtest1)sz0Single line doc Another test
   with some indent)
r   r   r   r   r   r   Ú	docformatÚ	docstringr   Úfilled_docstring)r   ÚuddÚ	formattedÚ
single_docs       r   Útest_docformatr"   <   sé   € Ý	Ñ	Ô	ð 
 Ø�
Š
Õ.ˆ
Ñ/Ô/Ð/ÝÔ"¥8Ñ,Ô,ˆÝÔ$¥Y°Ñ4Ô4ˆ	Ý�YÕ 0Ñ1Ô1Ð1Ø3ˆ
ÝÔ$ ZµÑ:Ô:ˆ	õ 	�Yð !ñ 	ô 	ð 	ð
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
øøøð 
ð 
ð 
ð 
ð 
ð 
s   �BB,Â,B0Â3B0zdocstrings stripped)Úreasonc                  ó¶  — t          ¦   «         5 } |                      t          ¬¦  «         t          j        t
          d¦  «        }|d„ ¦   «         }d„ }t          |j        |j        ¦  «         t          j        t
          t          j	        dk     rdnd¦  «        }|d„ ¦   «         }d„ }t          |j        |j        ¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )	Nr   Tc                  ó   — dS ©z0 Docstring
            %(strtest3)s
            N© r'   ó    r   Úfuncztest_decorator.<locals>.funcQ   ó   € € € r(   c                  ó   — dS )zP Docstring
            Another test
               with some indent
            Nr'   r'   r(   r   Úexpectedz test_decorator.<locals>.expectedW   r*   r(   )é   é   Fc                  ó   — dS r&   r'   r'   r(   r   r)   ztest_decorator.<locals>.funce   r*   r(   c                  ó   — dS )zX Docstring
                Another test
                   with some indent
            Nr'   r'   r(   r   r,   z test_decorator.<locals>.expectedj   r*   r(   )
r   r   r   r   Úfilldocr   r   Ú__doc__ÚsysÚversion_info)r   Ú	decoratorr)   r,   s       r   Útest_decoratorr6   J   sE  € å	Ñ	Ô	ð #5 Ø�
Š
Õ.ˆ
Ñ/Ô/Ð/å”N¥8¨TÑ2Ô2ˆ	à	ð	ð 	ñ 
Œð	ð
	ð 	ð 	õ
 	�T”\ 8Ô#3Ñ4Ô4Ð4õ ”N¥8Ý#&Ô#3°gÒ#=Ð#=ð .3¨UØCGñIô Iˆ	ð 
ð	ð 	ñ 
Œð	ð	ð 	ð 	õ
 	�T”\ 8Ô#3Ñ4Ô4Ð4ðG#5ð #5ð #5ñ #5ô #5ð #5ð #5ð #5ð #5ð #5ð #5ð #5øøøð #5ð #5ð #5ð #5ð #5ð #5s   �B2CÃCÃCc                  ó  ‡— t          ¦   «         5 } |                      t          ¬¦  «          G d„ d¦  «        Š G ˆfd„d‰¦  «        }d d d ¦  «         n# 1 swxY w Y   t          |j        j        ‰j        j        dz   ¦  «         t          |j        j        ‰j        j        ¦  «          |¦   «         }t          |j        j        ‰j        j        dz   ¦  «         t          |j        j        ‰j        j        ¦  «         d S )Nr   c                   ó   — e Zd Zd„ Zd„ ZdS )ú(test_inherit_docstring_from.<locals>.Fooc                 ó   — dS )zDo something useful.Nr'   ©Úselfs    r   r)   z-test_inherit_docstring_from.<locals>.Foo.funcy   s   € à�r(   c                 ó   — dS )zSomething else.Nr'   r;   s    r   Úfunc2z.test_inherit_docstring_from.<locals>.Foo.func2}   r*   r(   N)Ú__name__Ú
__module__Ú__qualname__r)   r>   r'   r(   r   ÚFoor9   x   s2   € € € € € ðð ð ð&ð &ð &ð &ð &r(   rB   c                   ót   •— e Zd Z ej        ” ¦  «        d„ ¦   «         Z ej        ” ¦  «        d„ ¦   «         ZdS )ú(test_inherit_docstring_from.<locals>.Barc                 ó   — dS )z%(super)sABCNr'   r;   s    r   r)   z-test_inherit_docstring_from.<locals>.Bar.func�   ó	   € ð �r(   c                 ó   — d S )Nr'   r;   s    r   r>   z.test_inherit_docstring_from.<locals>.Bar.func2†   rF   r(   N)r?   r@   rA   r   Úinherit_docstring_fromr)   r>   )rB   s   €r   ÚBarrD   €   se   ø€ € € € € Ø*ˆVÔ*¨3Ñ/Ô/ðð ñ 0Ô/ðð +ˆVÔ*¨3Ñ/Ô/ðð ñ 0Ô/ðð ð r(   rI   ÚABC)r   r   r   r   r)   r2   r>   )r   rI   ÚbarrB   s      @r   Útest_inherit_docstring_fromrL   r   sY  ø€ õ 
Ñ	Ô	ð  Ø�
Š
Õ.ˆ
Ñ/Ô/Ð/ð	&ð 	&ð 	&ð 	&ð 	&ñ 	&ô 	&ð 	&ð		ð 		ð 		ð 		ð 		ð 		ð 		�#ñ 		ô 		ð 		ðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð õ, �”Ô! 3¤8Ô#3°eÑ#;Ñ<Ô<Ð<Ý�”Ô" C¤IÔ$5Ñ6Ô6Ð6Ø
ˆ#‰%Œ%€CÝ�”Ô! 3¤8Ô#3°eÑ#;Ñ<Ô<Ð<Ý�”Ô" C¤IÔ$5Ñ6Ô6Ð6Ð6Ð6s   �9AÁAÁA)r2   r3   ÚpytestÚnumpy.testingr   r   Ú
scipy._libr   ÚflagsÚoptimizeÚDOCSTRINGS_STRIPPEDr   r   r   r   r   r   r   r   r"   ÚmarkÚskipifr6   rL   r'   r(   r   ú<module>rU      sE  ðØ FÐ Fà 
€
€
€
Ø €€€Ø 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9à Ð Ð Ð Ð Ð ð ”iÔ(¨1Ò,Ð ðð 
ðð ð
 ð ðð ð "Ø!Ø!ð#ð #€ð
ð ðEð Eð Eð7ð 7ð 7ðð ð ð „×ÒÐ'Ð0EÐÑFÔFð$5ð $5ñ GÔFð$5ðN „×ÒÐ'Ð0EÐÑFÔFð7ð 7ñ GÔFð7ð 7ð 7r(   