Skip to content

Commit 7a5b413

Browse files
authored
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>
1 parent 23183a2 commit 7a5b413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/claude_agent_sdk/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class HookMatcher:
367367
hooks: list[HookCallback] = field(default_factory=list)
368368

369369
# Timeout in seconds for all hooks in this matcher (default: 60)
370-
timeout: int | None = None
370+
timeout: float | None = None
371371

372372

373373
# MCP Server config

0 commit comments

Comments
 (0)