Fix: Fix HookMatcher.timeout type to float (#357)

According to https://www.schemastore.org/claude-code-settings.json, the
`timeout` type is `number`, not `integer`

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
This commit is contained in:
Harutaka Kawamura 2025-11-24 08:22:12 +09:00 committed by GitHub
parent 23183a2698
commit 7a5b413159
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -367,7 +367,7 @@ class HookMatcher:
hooks: list[HookCallback] = field(default_factory=list)
# Timeout in seconds for all hooks in this matcher (default: 60)
timeout: int | None = None
timeout: float | None = None
# MCP Server config