Skip to content

Commit

Permalink
default to pre-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
apple1417 committed Jan 5, 2024
1 parent 433f8da commit 4ca004a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mods_base/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _hook_bind(self: HookProtocol, obj: Any) -> HookProtocol:
@overload
def hook(
hook_func: str,
hook_type: Literal[Type.PRE],
hook_type: Literal[Type.PRE] = Type.PRE,
*,
auto_enable: bool = False,
) -> Callable[[AnyPreHook], HookProtocol]:
Expand All @@ -139,7 +139,7 @@ def hook(

def hook(
hook_func: str,
hook_type: Type,
hook_type: Type = Type.PRE,
*,
auto_enable: bool = False,
hook_identifier: str | None = None,
Expand Down

0 comments on commit 4ca004a

Please sign in to comment.