Skip to content

Export HookJSONOutput type#205

Open
yudduy wants to merge 1 commit into
anthropics:mainfrom
yudduy:issue/203
Open

Export HookJSONOutput type#205
yudduy wants to merge 1 commit into
anthropics:mainfrom
yudduy:issue/203

Conversation

@yudduy
Copy link
Copy Markdown

@yudduy yudduy commented Oct 4, 2025

Fixes #203 - Export HookJSONOutput type in init.py to resolve type checking issues when implementing hook callbacks. HookJSONOutput is defined in types.py and used as the return type for HookCallback, but was not exported in init.py, causing type checking issues when implementing hook callbacks.

@dicksontsai
Copy link
Copy Markdown
Collaborator

Thanks for your change! There are some lint and test errors to address.

Fixes anthropics#203

- Add HookJSONOutput to __init__.py exports for direct import
- Update examples/hooks.py to import from main module
@yudduy
Copy link
Copy Markdown
Author

yudduy commented Oct 10, 2025

hello! fixed the lint and test errors!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HookJSONOutput type is not exported in __init__.py

2 participants