From 8dece1d491a8105eaf55a556aae37df676632141 Mon Sep 17 00:00:00 2001 From: Mark Bakhit Date: Wed, 30 Oct 2024 21:33:09 -0700 Subject: [PATCH] fix hook deprecation warning (#1240) --- 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, )