o
    ¡iâ  ã                   @  s(   d dl mZ d dlZddœddd„ZdS )é    )ÚannotationsNF)ÚstrictÚnodeúast.ASTr   ÚboolÚreturnú)tuple[str | None, int | None, int | None]c                C  sz   t | tjƒr
| j}n|s%| jr%t | jtƒr%t | jd tjƒr%| jd j}ndS t |tjƒr;t |jtƒr;|j|j|j	fS dS )zðExtract a docstring.

    Parameters:
        node: The node to extract the docstring from.
        strict: Whether to skip searching the body (functions).

    Returns:
        A tuple with the value and line numbers of the docstring.
    r   )NNN)
Ú
isinstanceÚastÚExprÚvalueÚbodyÚlistÚConstantÚstrÚlinenoÚ
end_lineno)r   r   Údoc© r   ún/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/griffe/_internal/agents/nodes/docstrings.pyÚget_docstring   s   (r   )r   r   r   r   r   r   )Ú
__future__r   r
   r   r   r   r   r   Ú<module>   s   ý