HookResult

The return value from a hook handler, specifying the action and optional message.

Usage

Source

HookResult()

Parameter Attributes

action: Action
message: str | None = None

Methods

Name Description
of() Build a HookResult, dedenting and stripping message for readable triple-quoted handler returns.

of()

Build a HookResult, dedenting and stripping message for readable triple-quoted handler returns.

Usage

Source

of(action, message=None)