From 7a5b413159495378100dd5612a5bf6daeaef2193 Mon Sep 17 00:00:00 2001 From: Harutaka Kawamura Date: Mon, 24 Nov 2025 08:22:12 +0900 Subject: [PATCH] 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> --- src/claude_agent_sdk/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/claude_agent_sdk/types.py b/src/claude_agent_sdk/types.py index 81e19ac..4e1abba 100644 --- a/src/claude_agent_sdk/types.py +++ b/src/claude_agent_sdk/types.py @@ -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