Skip to content

Commit 8b071a5

Browse files
committed
Fix deprecation warning messages
1 parent a7327c4 commit 8b071a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def use_connection() -> Connection[Any]: # nocov
1212
"""Get the current :class:`~reactpy.backend.types.Connection`."""
1313
warn(
1414
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ",
15-
"Call use_connection in reactpy.core.hooks instead.",
15+
"Call reactpy.use_connection instead.",
1616
DeprecationWarning,
1717
)
1818

@@ -27,7 +27,7 @@ def use_scope() -> MutableMapping[str, Any]: # nocov
2727
"""Get the current :class:`~reactpy.backend.types.Connection`'s scope."""
2828
warn(
2929
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ",
30-
"Call use_scope in reactpy.core.hooks instead.",
30+
"Call reactpy.use_scope instead.",
3131
DeprecationWarning,
3232
)
3333

@@ -38,7 +38,7 @@ def use_location() -> Location: # nocov
3838
"""Get the current :class:`~reactpy.backend.types.Connection`'s location."""
3939
warn(
4040
"The module reactpy.backend.hooks has been deprecated and will be deleted in the future. ",
41-
"Call use_location in reactpy.core.hooks instead.",
41+
"Call reactpy.use_location instead.",
4242
DeprecationWarning,
4343
)
4444

0 commit comments

Comments
 (0)