
    -Ph\                    F   U d dl mZ d dlZd dlmZ d dlmZ d dlmZ erd dl	m
Z
mZ d dlmZ d dlmZmZ d d	lmZ  ej        d
          Zded<   ddZ ej        ddd           G d d                      Z ej        ddd           G d d                      ZdS )    )annotationsN)TYPE_CHECKING)__)logging)SequenceSet)Path)FinalSelf)Configzsphinx.ext.apidocz"Final[logging.SphinxLoggerAdapter]LOGGERwritten_filesSequence[Path]dest_dirr	   suffixstrreturnNonec                   t          |           }|                    d|           D ]c}||vr]	 |                                 # t          $ r:}t                              t          d          ||j        d           Y d }~[d }~ww xY wdd S )Nz*.zFailed to remove %s: %sautodoc)type)	frozensetrglobunlinkOSErrorr   warningr   strerror)r   r   r   files_to_keepexistingexcs         Y/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/sphinx/ext/apidoc/_shared.py_remove_old_filesr"      s     m,,MNN===11 
 
=((!!!!   011L"	          )
 
s   A
B0BBT)frozenkw_onlyslotsc                     e Zd ZU dZded<   ded<   dZded<   dZd	ed
<   dZded<   dZded<   dZ	ded<   dZ
ded<   dZded<   dZded<   dZded<    ej        e          Zded<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded <   dZded!<   d"Zded#<   d$Zd%ed&<   d$Zd%ed'<   d$Zd%ed(<   d$Zd)ed*<   d$Zd%ed+<   d$S ),ApidocOptionszOptions for apidoc.r	   r   module_path zSequence[str]exclude_pattern   int	max_depthFboolfollow_linksseparate_modulesinclude_privatemodulesr   toc_fileno_headingsmodule_firstimplicit_namespaces)default_factoryzSet[str]automodule_optionsrstr   T
remove_oldquietdry_runforcefullappend_syspath headerNz
str | NoneauthorversionreleasezSequence[str] | None
extensionstemplate_dir)__name__
__module____qualname____doc____annotations__r*   r-   r/   r0   r1   r3   r4   r5   r6   dataclassesfieldsetr8   r   r:   r;   r<   r=   r>   r?   rA   rB   rC   rD   rE   rF   r)       r!   r'   r'   $   s        NNN%'O''''IL"""""!O!!!!HKL %%%%%#4;#4S#I#I#IIIIIFJEGE D N    FFGG'+J++++#L######rO   r'   c                      e Zd ZU dZded<   ded<   ded<   ded	<   ded
<   ded<   ded<   ded<   ded<   edd            ZdS )ApidocDefaultsz"Default values for apidoc options.z	list[str]exclude_patternszfrozenset[str]r8   r,   r-   r.   r/   r0   r1   r4   r5   r6   configr   r   r   c                    | |j         t          |j                  |j        |j        |j        |j        |j        |j        |j	        	  	        S )z.Collect the default values for apidoc options.)	rR   r8   r-   r/   r0   r1   r4   r5   r6   )
apidoc_exclude_patternsr   apidoc_automodule_optionsapidoc_max_depthapidoc_follow_linksapidoc_separate_modulesapidoc_include_privateapidoc_no_headingsapidoc_module_firstapidoc_implicit_namespaces)clsrS   s     r!   from_configzApidocDefaults.from_configV   s[     s#;()IJJ-3#;"913 & A

 

 

 
	
rO   N)rS   r   r   r   )rG   rH   rI   rJ   rK   classmethodr_   r)   rO   r!   rQ   rQ   H   s         ,,&&&&NNN
 
 
 [
 
 
rO   rQ   )r   r   r   r	   r   r   r   r   )
__future__r   rL   typingr   sphinx.localer   sphinx.utilr   collections.abcr   r   pathlibr	   r
   r   sphinx.configr   	getLoggerr   rK   r"   	dataclassr'   rQ   r)   rO   r!   <module>rj      s   " " " " " " "                             %--------""""""""$$$$$$->W->?R-S-S S S S S   " dD=== $  $  $  $  $  $  $ >= $F dD===
 
 
 
 
 
 
 >=
 
 
rO   