Skip to content

Commit 8dece1d

Browse files
authored
fix hook deprecation warning (#1240)
1 parent 0facdca commit 8dece1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/py/reactpy/reactpy/backend/hooks.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def use_connection() -> Connection[Any]: # nocov
1212
"""Get the current :class:`~reactpy.backend.types.Connection`."""
1313
warn(
14-
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ",
14+
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. "
1515
"Call reactpy.use_connection instead.",
1616
DeprecationWarning,
1717
)
@@ -26,7 +26,7 @@ def use_connection() -> Connection[Any]: # nocov
2626
def use_scope() -> MutableMapping[str, Any]: # nocov
2727
"""Get the current :class:`~reactpy.backend.types.Connection`'s scope."""
2828
warn(
29-
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ",
29+
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. "
3030
"Call reactpy.use_scope instead.",
3131
DeprecationWarning,
3232
)
@@ -37,7 +37,7 @@ def use_scope() -> MutableMapping[str, Any]: # nocov
3737
def use_location() -> Location: # nocov
3838
"""Get the current :class:`~reactpy.backend.types.Connection`'s location."""
3939
warn(
40-
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ",
40+
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. "
4141
"Call reactpy.use_location instead.",
4242
DeprecationWarning,
4343
)

0 commit comments

Comments
 (0)