Skip to content

Conversation

@yudduy
Copy link

@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
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
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