
    Rǻi4                        d dl mZ ddlmZ ddlmZ ej                  rddlm	Z	 g dZ
 G d de      Z G d	 d
e      Z G d dee      Zy)    )annotations   )_typing)NotificationPrinter)GqlStatusObject)Neo4jDeprecationWarningNeo4jWarningPreviewWarningc                      e Zd ZdZy)r
   aY  
    A driver feature in preview has been used.

    It might be changed without following the deprecation policy.
    See also https://github.com/neo4j/neo4j-python-driver/wiki/preview-features

    .. versionadded:: 5.8

    .. versionchanged:: 6.0
        Moved from ``neo4j.PreviewWarning`` to
        ``neo4j.warnings.PreviewWarning``.
    N__name__
__module____qualname____doc__     L/opt/lhia/marcimex/agent/venv/lib/python3.12/site-packages/neo4j/warnings.pyr
   r
   "   s    r   r
   c                  >     e Zd ZU dZded<   	 d	 	 	 	 	 d fdZ xZS )r	   a  
    Warning emitted for notifications sent by the server.

    Which notifications trigger a warning can be controlled by a
    configuration option: :ref:`driver-warn-notification-severity-ref`

    See also
    https://github.com/neo4j/neo4j-python-driver/wiki/preview-features

    :param notification: The notification that triggered the warning.
    :param query: The query for which the notification was sent.
        If provided, it will be used for a more detailed warning message.

    .. versionadded:: 5.21

    .. versionchanged:: 6.0
        * :attr:`.notification` is now of type :class:`.GqlStatusObject`
          instead of :class:`.SummaryNotification`.
        * Stabilized from preview.

    .. seealso:: :ref:`development-environment-ref`
    r   notificationc                \    t        t        ||            }t        |   |       || _        y N)strr   super__init__r   )selfr   querymsg	__class__s       r   r   zNeo4jWarning.__init__L   s,    
 %lE:;(r   r   )r   r   r   z
str | NonereturnNone)r   r   r   r   __annotations__r   __classcell__)r   s   @r   r	   r	   1   s;    0 "!
 !)%) ) 
	) )r   r	   c                      e Zd ZdZy)r   a}  
    Warning emitted for deprecation notifications sent by the server.

    .. note::

        This warning is a subclass of :class:`DeprecationWarning`.
        This means that Python will not show this warning by default.

    :param notification: The notification that triggered the warning.

    .. versionadded:: 5.21

    .. versionchanged:: 6.0 Stabilized from preview.
    Nr   r   r   r   r   r   V   s    r   r   N)
__future__r    r   _t_debugr   TYPE_CHECKING_work.summaryr   __all__Warningr
   r	   DeprecationWarningr   r   r   r   <module>r-      sM   " #  ' .W ")7 ")Jl,> r   