ó
    Ð]jŒ  ã                   ó–  • S r SSKrSSKrSSKJrJrJrJr  SSK	J
r
  SSKJrJrJrJr  \R                   \\R"                  \\R$                  \\R&                  \0r\R*                  4S\R,                  \   S\S\4S	 jjr\R*                  4S
\R2                  S\S\4S jjr\R*                  \R6                  S4S\S\S\S\S\4
S jjrg)zThe main parsing routine.é    N)ÚepydocÚgoogleÚnumpydocÚrest)Úadd_attribute_docstrings)Ú	DocstringÚDocstringStyleÚ
ParseErrorÚRenderingStyleÚtextÚstyleÚreturnc                 óB  • U[         R                  :w  a  [        U   R                  U 5      $ Sn/ n[        R	                  5        H&  n UR                  U 5      nUR                  U5        M(     U(       d  Ue[        US SS9S   $ ! [         a  nUn SnAMT  SnAff = f)z—Parse the docstring into its components.

:param text: docstring text to parse
:param style: docstring style
:returns: parsed docstring representation
Nc                 ó,   • [        U R                  5      $ )N)ÚlenÚmeta)Úds    ÚT/home/mande/repo/quber/.venv/lib/python3.13/site-packages/docstring_parser/parser.pyÚ<lambda>Úparse.<locals>.<lambda>0   s   € ¤c¨!¯&©&¤kó    T)ÚkeyÚreverser   )r	   ÚAUTOÚ
_STYLE_MAPÚparseÚvaluesÚappendr
   Úsorted)r   r   ÚexcÚretsÚmoduleÚretÚexs          r   r   r      sœ   € ð ”×#Ñ#Ó#Ü˜%Ñ ×&Ñ& tÓ,Ð,à!%€CØ€DÜ×#Ñ#Ö%ˆð	Ø—,‘,˜tÓ$ˆCð �K‰K˜Öñ &ö Øˆ	ä�$Ñ1¸4Ñ@ÀÑCÐCøô ó 	ØŽCûð	ús   Á	BÂ
BÂBÂBÚobjc                 ó°   • [        U R                  US9n[        R                  " U 5      (       d  [        R                  " U 5      (       a  [        X5        U$ )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_objectr,   3   sA   € ô. �c—k‘k¨Ñ/€Iä‡‚�s×Ñœw×/Ò/°×4Ñ4Ü  Ô0àÐr   z    r+   Úrendering_styleÚindentc                 ót   • [         U[        R                  :X  a  U R                  OU   nUR	                  XUS9$ )zíRender 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
)r-   r.   )r   r	   r   r   Úcompose)r+   r   r-   r.   r"   s        r   r0   r0   R   sA   € ô Ø ¤N×$7Ñ$7Ó7ˆ	�Š¸Uñ€Fð �>‰>Ø¸6ð ð ð r   )r'   r(   ÚtypingÚTÚdocstring_parserr   r   r   r   Údocstring_parser.attrdocr   Údocstring_parser.commonr   r	   r
   r   ÚRESTÚGOOGLEÚNUMPYDOCÚEPYDOCr   r   ÚOptionalÚstrr   ÚAnyr,   ÚCOMPACTr0   © r   r   Ú<module>r?      s  ðÙ ã Û ç ;Ó ;Ý =÷ó ð ×Ñ˜Ø×Ñ˜6Ø×Ñ˜XØ×Ñ˜6ð	€
ð 4B×3FÑ3FñDØ
�*‰*�S‰/ðDØ"0ðDàõDð< +×/Ñ/ñØ	
�‰ðàðð õðB +×/Ñ/Ø&4×&<Ñ&<Øñ	Øðàðð $ðð ð	ð
 	ör   