Skip to content

Commit

Permalink
Adjust wording
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Jan 2, 2024
1 parent 71d071d commit 1d1ca4a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arc/abc/hookable.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ def add_post_hook(self, hook: PostHookT[ClientT]) -> te.Self:
"""Add a new post-execution hook to this object.
Any function that takes a [`Context`][arc.context.base.Context] as its sole parameter
and returns either a [`HookResult`][arc.abc.hookable.HookResult] or
`None` can be used as a hook.
and returns `None` can be used as a post-hook.
Parameters
----------
Expand Down Expand Up @@ -115,8 +114,7 @@ def with_post_hook(hook: PostHookT[ClientT]) -> t.Callable[[HookableT], Hookable
"""Add a new post-execution hook to a hookable object. It will run after the command callback.
Any function that takes a [`Context`][arc.context.base.Context] as its sole parameter
and returns either a [`HookResult`][arc.abc.hookable.HookResult] or
`None` can be used as a hook.
and returns `None` can be used as a post-hook.
Post-execution hooks are not executed if a pre-execution hook aborts the execution of the command.
Expand Down

0 comments on commit 1d1ca4a

Please sign in to comment.