Skip to content

Commit

Permalink
fix hook deprecation warning (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger authored Oct 31, 2024
1 parent 0facdca commit 8dece1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/py/reactpy/reactpy/backend/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand Down

0 comments on commit 8dece1d

Please sign in to comment.