
    ~Ti                        d dl mZ d dlmZ d dlmZmZmZmZ d dl	m
Z
 d dlmZ erd dlmZ d dlmZ d dlmZ d d	lmZ d d
lmZ 	 	 	 	 	 	 	 	 	 	 	 	 ddZddZy)    )annotations)TYPE_CHECKING)_AssignStatementProperties_ClassDefProperties_FunctionDefProperties_TypeStatementProperties)SUPPRESS)_)Iterator)Literal)
StringList)_AutoDocumenterOptions)_ItemPropertiesc              #  4	  K   |j                   xs |j                  }|j                  xs d^}}d| d}| | |  dt        |      z  }|D ]  }| | |   |j                  s|j
                  rd |j                  rd |j                  rd|j                    |j                  dk(  rJ|j                  rd	|j                    |j                  rd
|j                    |j                  rd |j                  dv rt        |t              sJ |j                  s|j                  ry|rd |j                   }	|j"                  s$|j                  s|	r|j$                  |	k7  rd|	  |j"                  s<|j&                  r0d dt)        d      dj+                  |j,                        z  z    |j                  dv r"t        |t.              sJ |j0                  rd |j                  dk(  rdt        |t.              sJ |j2                  rd |j0                  rd |j4                  rd |j6                  rd |j8                  s|rd |j                  dk(  rLt        |t.              sJ |j2                  rd |j4                  rd |j:                  }
| dk7  r	|
d|
  |j                  dk(  rt        |t<              sJ |j>                  t@        u s|jB                  rny|j>                  rd|j>                    n[|jD                  }| dk7  r	|d|  |jF                  s5|jH                  )|jJ                  s|jL                  sd|jN                    |j                  d k(  rt        |t<              sJ |j>                  r0|j>                  t@        ur|jB                  sd|j>                    ns|jD                  }| dk7  r	|d|  |jF                  sM|jH                  A|jP                  s5|jB                  s)|jJ                  s|jL                  sd|jN                    |j                  d!k(  r>t        |tR              sJ |jF                  s|jJ                  sd|jT                    yyyyw)"z+Emit the directive header and option lines.) z.. z::  z   :no-index:z   :no-index-entry:z   :module: modulez   :synopsis: z   :platform: z   :deprecated:>   class	exceptionNz
   :final:z   :canonical: r   z   z	Bases: %sz, >   function	decoratorz
   :async:methodz   :abstractmethod:z   :classmethod:z   :staticmethod:propertynonez
   :type: dataz   :annotation: z   :value: 	attributetype)+dotted_partsmodule_name
signatureslenno_indexnoindexno_index_entrypartsobj_typesynopsisplatform
deprecated
isinstancer   _obj_is_new_type_obj_is_typevarcanonical_full_namedoc_as_attr	full_nameshow_inheritancer
   join
_obj_basesr   is_asyncis_abstractmethodis_classmethodis_staticmethodis_final_obj_property_type_annotationr   
annotationr	   _obj_is_generic_alias_obj_type_annotationno_value_obj_is_sentinel_docstrings_has_hide_value_obj_is_mock_obj_repr_rst_obj_is_attribute_descriptorr   _obj___value__)autodoc_typehintsdirective_namer7   optionspropsnamesig_line	sig_linesprefixcanonical_fullnameobjreprtype_annotations               O/home/agent/.local/lib/python3.12/site-packages/sphinx/ext/autodoc/_renderer.py_directive_header_linesrO      s     2!2!2D !++4uHy>"#&FHTF8*
%%3v;F *xj))* 7??##{{ U../00~~!"7#3#3"455"7#3#3"455##~~//%!4555!!U%:%:"66!!**"#55#$6#788   W%=%=H!K.499U5E5E+FFFF~~22%!7888>>~~!%!7888""''>>$$  %%>>X~~#%!7888""''$$55&7+>wi((~~%!;<<<)U-H-H$W%7%7$899#88O F*/J"?"344 $$**288**#E$7$7#899~~$%!;<<< ""(2//$W%7%7$899#88O F*/J"?"344 $$**2::3388**#E$7$7#899~~%!9:::(H(H#E$8$8#9:: )I  s   RRc                   t        | j                  | j                  d      D ]K  \  }}|j                         r|j	                  ||z   |d   |d          3|j	                  d|d   |d          M y )NT)strictr      r   )zipr   itemsstripappend)contentresultindentlinesrcs        rN   _add_contentr\      sc    w}}TB .	c::<MM&4-QQ8MM"c!fc!f-	.    N)rC   z3Literal['signature', 'description', 'none', 'both']rD   strr7   boolrE   r   rF   r   returnzIterator[str])rW   r   rX   r   rY   r^   r`   None)
__future__r   typingr   "sphinx.ext.autodoc._property_typesr   r   r   r   sphinx.ext.autodoc._sentinelsr	   sphinx.localer
   collections.abcr   r   docutils.statemachiner   %sphinx.ext.autodoc._directive_optionsr   r   rO   r\    r]   rN   <module>rk      s{    "    3 (0LBP;JP; P; 	P;
 $P; P; P;f.r]   