
    -h                    `    d dl mZ d dlZd dlmZ d dlmZ d dlmZ erd dlm	Z	 ddZ
dddZdS )    )annotationsNunparse)TYPE_CHECKING)logger)Pathnodeast.AST | Nonereturn
str | Nonec                (    | dS t          |           S )zGet the string representation of a node.

    Parameters:
        node: The node to represent.

    Returns:
        The representing code for the node.
    Nr   )r	   s    X/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/_griffe/agents/nodes/values.py	get_valuer      s     |t4==    filepathstr | Path | Nonec                    	 t          |           S # t          $ r>}d|  }|r|d| d| j         z  }|d| z  }t          j        |           Y d}~dS d}~ww xY w)zSafely (no exception) get the string representation of a node.

    Parameters:
        node: The node to represent.
        filepath: An optional filepath from where the node comes.

    Returns:
        The representing code for the node.
    zFailed to represent node z at :z: N)r   	Exceptionlinenor   	exception)r	   r   errormessages       r   safe_get_valuer      s       4d44 	76h66666G<<<!!!ttttts    
A3AA)r	   r
   r   r   )N)r	   r
   r   r   r   r   )
__future__r   astr   typingr   _griffe.loggerr   pathlibr   r   r    r   r   <module>r!      s    # " " " " " 



                   ! ! ! ! ! !          r   