+
    Riz                     D   R t ^ RIt^ RIt^ RIHtHtHtHt ^ RI	H
t
 ^ RIHtHtHtHt ]P                   ]]P"                  ]]P$                  ]]P&                  ]/t]P*                  3R R llt]P*                  3R R llt]P*                  ]P0                  R	3R
 R lltR# )zThe main parsing routine.N)epydocgooglenumpydocrest)add_attribute_docstrings)	DocstringDocstringStyle
ParseErrorRenderingStylec                <    V ^8  d   QhR\         R\        R\        /# )   textstylereturn)strr   r   )formats   "V/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/docstring_parser/parser.py__annotate__r      s&     D D DN DY D    c                ^   V\         P                  8w  d   \        V,          P                  V 4      # Rp. p\        P	                  4        F&  p VP                  V 4      pVP                  V4       K(  	  V'       g   Vh\        VR RR7      ^ ,          #   \         d   pTp Rp?K]  Rp?ii ; i)zParse the docstring into its components.

:param text: docstring text to parse
:param style: docstring style
:returns: parsed docstring representation
Nc                 ,    \        V P                  4      # )N)lenmeta)ds   &r   <lambda>parse.<locals>.<lambda>.   s    c!&&kr   T)keyreverse)r   AUTO
_STYLE_MAPparsevaluesappendr	   sorted)r   r   excretsmoduleretexs   &&     r   r    r       s     ###% &&t,,!%CD##%	,,t$C KK & 	$14@CC  	C	s   BB,B''B,c                P    V ^8  d   QhR\         P                  R\        R\        /# )r   objr   r   )TAnyr   r   )r   s   "r   r   r   1   s*      	
 r   c                    \        V P                  VR7      p\        P                  ! V 4      '       g   \        P                  ! V 4      '       d   \        W4       V# )a  Parse the object's docstring(s) into its components.

The object can be anything that has a ``__doc__`` attribute. In contrast to
the ``parse`` function, ``parse_from_object`` is able to parse attribute
docstrings which are defined in the source code instead of ``__doc__``.

Currently only attribute docstrings defined at class and module levels are
supported. Attribute docstrings defined in ``__init__`` methods are not
supported.

When given a class, only the attribute docstrings of that class are parsed,
not its inherited classes. This is a design decision. Separate calls to
this function should be performed to get attribute docstrings of parent
classes.

:param obj: object from which to parse the docstring(s)
:param style: docstring style
:returns: parsed docstring representation
)r   )r    __doc__inspectisclassismoduler   )r*   r   	docstrings   && r   parse_from_objectr3   1   sA    . ckk/Isw//44 0r   z    c          
      T    V ^8  d   QhR\         R\        R\        R\        R\        /# )r   r2   r   rendering_styleindentr   )r   r   r
   r   )r   s   "r   r   r   P   s:       $ 	
 	r   c                    \         V\        P                  8X  d   V P                  MT,          pVP	                  WVR7      # )zRender a parsed docstring into docstring text.

:param docstring: parsed docstring representation
:param style: docstring style to render
:param indent: the characters used as indentation in the docstring string
:returns: docstring text
)r5   r6   )r   r   r   r   compose)r2   r   r5   r6   r&   s   &&&& r   r8   r8   P   sA      N$7$77	UF >>6   r   )r.   r/   typingr+   docstring_parserr   r   r   r   docstring_parser.attrdocr   docstring_parser.commonr   r   r	   r
   RESTGOOGLENUMPYDOCEPYDOCr   r   r    r3   COMPACTr8    r   r   <module>rC      s       ; ; =  6X6	
 .<-@-@ D8 +//B +//&4&<&<	 r   