HookResult
The return value from a hook handler, specifying the action and optional message.
Usage
HookResult()Parameter Attributes
action: Actionmessage: 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
of(action, message=None)