
    -h                    (    d dl mZ d dlZddddZdS )    )annotationsNF)strictnodeast.ASTr   boolreturn)tuple[str | None, int | None, int | None]c                  t          | t          j                  r| j        }n]|sY| j        rRt          | j        t
                    r8t          | 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 )zExtract 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   docs      \/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/_griffe/agents/nodes/docstrings.pyget_docstringr      s     $!!  j  	  jD&A&A  jQUQZ[\Q]_b_gFhFh  il #s|$$ 5CIs)C)C 5y#*cn44    )r   r   r   r   r   r	   )
__future__r   r   r    r   r   <module>r      sO    # " " " " " 



        r   