Ë
    YHhÕ  ã                  ól   — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
 d dlmZmZ dd„Zdd„Zdd	„Zy
)é    )Úannotations)ÚMutableMapping)ÚAny)Úwarn)Ú
ConnectionÚLocation)ÚConnectionContextÚuse_contextc                 ób   — t        dt        «       t        t        «      } | €d}t	        |«      ‚| S )z;Get the current :class:`~reactpy.backend.types.Connection`.z|The module reactpy.backend.hooks has been deprecated and will be deleted in the future. Call reactpy.use_connection instead.z$No backend established a connection.)r   ÚDeprecationWarningr
   r	   ÚRuntimeError)ÚconnÚmsgs     úN/var/www/html/planif/env/lib/python3.12/site-packages/reactpy/backend/hooks.pyÚuse_connectionr      s9   € äð	/äôô Ô(Ó)€DØ€|Ø4ˆÜ˜3ÓÐØ€Kó    c                 óJ   — t        dt        «       t        «       j                  S )zCGet the current :class:`~reactpy.backend.types.Connection`'s scope.zwThe module reactpy.backend.hooks has been deprecated and will be deleted in the future. Call reactpy.use_scope instead.)r   r   r   Úscope© r   r   Ú	use_scoper      s#   € äð	*äôô Ó×!Ñ!Ð!r   c                 óJ   — t        dt        «       t        «       j                  S )zFGet the current :class:`~reactpy.backend.types.Connection`'s location.zzThe module reactpy.backend.hooks has been deprecated and will be deleted in the future. Call reactpy.use_location instead.)r   r   r   Úlocationr   r   r   Úuse_locationr   %   s#   € äð	-äôô Ó×$Ñ$Ð$r   N)ÚreturnzConnection[Any])r   zMutableMapping[str, Any])r   r   )Ú
__future__r   Úcollections.abcr   Útypingr   Úreactpy._warningsr   Úreactpy.backend.typesr   r   Úreactpy.core.hooksr	   r
   r   r   r   r   r   r   ú<module>r!      s&   ðÝ "å *Ý å "ß 6ß =óó"ô%r   