§
    fŠtj6  ã                   ó   — d Z ddlZddlZddlZddl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)Ú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          j        ¦   «         5  t          j        d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Úignore©Úcategory)
ÚwarningsÚcatch_warningsÚsimplefilterÚDeprecationWarningr   r   Úunindent_stringÚ
param_doc1Ú
param_doc2Ú
param_doc3© ó    úZ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/scipy/_lib/tests/test_doccer.pyÚtest_unindentr   ,   sñ   € Ý	Ô	 Ñ	"Ô	"ð Eð EÝÔ˜hÕ1CÐDÑDÔDÐDÝ•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 CÃCÃCc                  óŠ  — t          j        ¦   «         5  t          j        d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   r   r   Úunindent_dictÚdoc_dictr   )Úd2s    r   Útest_unindent_dictr   4   sà   € Ý	Ô	 Ñ	"Ô	"ð ,ð ,ÝÔ˜hÕ1CÐDÑDÔDÐDÝÔ!¥(Ñ+Ô+ˆð,ð ,ð ,ñ ,ô ,ð ,ð ,ð ,ð ,ð ,ð ,øøøð ,ð ,ð ,ð ,õ ��J”¥¨*Ô!5Ñ6Ô6Ð6Ý��J”¥¨*Ô!5Ñ6Ô6Ð6Ý��J”¥¨*Ô!5Ñ6Ô6Ð6Ð6Ð6s   ”5AÁAÁAc                  ó|  — t          j        ¦   «         5  t          j        d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
   r   zSingle line doc %(strtest1)sz0Single line doc Another test
   with some indent)r   r   r   r   r   r   r   Ú	docformatÚ	docstringr   Úfilled_docstring)ÚuddÚ	formattedÚ
single_docs      r   Útest_docformatr%   =   sñ   € Ý	Ô	 Ñ	"Ô	"ð 
ð 
ÝÔ˜hÕ1CÐDÑDÔDÐDÝÔ"¥8Ñ,Ô,ˆÝÔ$¥Y°Ñ4Ô4ˆ	Ý�YÕ 0Ñ1Ô1Ð1Ø3ˆ
ÝÔ$ ZµÑ:Ô:ˆ	õ 	�Yð !ñ 	ô 	ð 	ð
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
øøøð 
ð 
ð 
ð 
ð 
ð 
s   ”BB1Â1B5Â8B5zdocstrings stripped)Úreasonc                  óÀ  — t          j        ¦   «         5  t          j        d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
   r   Tc                  ó   — dS ©z0 Docstring
            %(strtest3)s
            Nr   r   r   r   Úfuncztest_decorator.<locals>.funcR   ó   € € € r   c                  ó   — dS )zP Docstring
            Another test
               with some indent
            Nr   r   r   r   Úexpectedz test_decorator.<locals>.expectedX   r+   r   )é   é   Fc                  ó   — dS r)   r   r   r   r   r*   ztest_decorator.<locals>.funcf   r+   r   c                  ó   — dS )zX Docstring
                Another test
                   with some indent
            Nr   r   r   r   r-   z test_decorator.<locals>.expectedk   r+   r   )r   r   r   r   r   Úfilldocr   r   Ú__doc__ÚsysÚversion_info)Ú	decoratorr*   r-   s      r   Útest_decoratorr7   K   sM  € å	Ô	 Ñ	"Ô	"ð #5ð #5ÝÔ˜hÕ1CÐDÑDÔDÐDå”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          j        ¦   «         5  t          j        d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
   r   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.funcz   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   ÚFoor:   y   s2   € € € € € ðð ð ð&ð &ð &ð &ð &r   rC   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‡   rG   r   N)r@   rA   rB   r   Úinherit_docstring_fromr*   r?   )rC   s   €r   ÚBarrE   �   se   ø€ € € € € Ø*ˆVÔ*¨3Ñ/Ô/ðð ñ 0Ô/ðð +ˆVÔ*¨3Ñ/Ô/ðð ñ 0Ô/ðð ð r   rJ   ÚABC)r   r   r   r   r   r*   r3   r?   )rJ   ÚbarrC   s     @r   Útest_inherit_docstring_fromrM   s   sa  ø€ õ 
Ô	 Ñ	"Ô	"ð ð ÝÔ˜hÕ1CÐDÑDÔDÐDð	&ð 	&ð 	&ð 	&ð 	&ñ 	&ô 	&ð 	&ð		ð 		ð 		ð 		ð 		ð 		ð 		�#ñ 		ô 		ð 		ðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð õ, �”Ô! 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)r3   r4   r   ÚpytestÚnumpy.testingr   Ú
scipy._libr   ÚflagsÚoptimizeÚDOCSTRINGS_STRIPPEDr    r   r   r   r   r!   r   r   r%   ÚmarkÚskipifr7   rM   r   r   r   ú<module>rV      sH  ðØ FÐ Fà 
€
€
€
Ø €€€Ø €€€Ø &Ð &Ð &Ð &Ð &Ð &à Ð Ð Ð Ð Ð ð ”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   