
    iKj-                    H   U d dl mZ d dlmZmZmZ d dlmZmZ d dl	m
Z
mZ d dlmZmZ d dlmZmZ d dlmZmZ d dlmZ erd d	lmZ d d
lmZ ed   Z	 e
ez  ez  ez  Z	 ej:                  eej<                  eej>                  eej@                  eiZ!de"d<   	 	 	 	 	 	 	 	 ddZ#y)    )annotations)TYPE_CHECKINGAnyLiteral)AutoOptions
parse_auto)GoogleOptionsparse_google)DocstringSectionDocstringSectionText)NumpyOptionsparse_numpy)SphinxOptionsparse_sphinx)Parser)Callable)	Docstring)googlenumpysphinxautoz;dict[Parser, Callable[[Docstring], list[DocstringSection]]]parsersc                    |r*t        |t              st        |      }t        |   | fi |S | j                  rt	        | j                        gS g S )a  Parse the docstring.

    Parameters:
        docstring: The docstring to parse.
        parser: The docstring parser to use. If None, return a single text section.
        **options: The options accepted by the parser.

    Returns:
        A list of docstring sections.
    )
isinstancer   r   valuer   )	docstringparseroptionss      t/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/griffe/_internal/docstrings/parsers.pyparser    #   sL     &&)F^Fvy4G446?oo 12M2M    N)r   r   r   zDocstringStyle | Parser | Noner   r   returnzlist[DocstringSection])$
__future__r   typingr   r   r    griffe._internal.docstrings.autor   r   "griffe._internal.docstrings.googler	   r
   "griffe._internal.docstrings.modelsr   r   !griffe._internal.docstrings.numpyr   r   "griffe._internal.docstrings.sphinxr   r   griffe._internal.enumerationsr   collections.abcr   griffe._internal.modelsr   DocstringStyleDocstringOptionsr   r   r   r   r   __annotations__r     r!   r   <module>r1      s    # . . D J U G J 0(1 <= P </-?+M  + KK
MM<
MM<
LL+	H	D NN*N N 	Nr!   