From 92f10a3fb2284fc6054c5947bb1017a19e092d2a Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:23:31 -0700 Subject: [PATCH] fix hook deprecation warning --- src/py/reactpy/reactpy/backend/hooks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/py/reactpy/reactpy/backend/hooks.py b/src/py/reactpy/reactpy/backend/hooks.py index ef1b4a5cb..ec761ef0f 100644 --- a/src/py/reactpy/reactpy/backend/hooks.py +++ b/src/py/reactpy/reactpy/backend/hooks.py @@ -11,7 +11,7 @@ def use_connection() -> Connection[Any]: # nocov """Get the current :class:`~reactpy.backend.types.Connection`.""" warn( - "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ", + "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. " "Call reactpy.use_connection instead.", DeprecationWarning, ) @@ -26,7 +26,7 @@ def use_connection() -> Connection[Any]: # nocov def use_scope() -> MutableMapping[str, Any]: # nocov """Get the current :class:`~reactpy.backend.types.Connection`'s scope.""" warn( - "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ", + "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. " "Call reactpy.use_scope instead.", DeprecationWarning, ) @@ -37,7 +37,7 @@ def use_scope() -> MutableMapping[str, Any]: # nocov def use_location() -> Location: # nocov """Get the current :class:`~reactpy.backend.types.Connection`'s location.""" warn( - "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ", + "The module reactpy.backend.hooks has been deprecated and will be deleted in the future. " "Call reactpy.use_location instead.", DeprecationWarning, )