-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update EventListener.handler behavior #1260
Conversation
73f898e
to
17e5cb3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Can you please add a section to events.md
showing this behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved but looks like there are some doc failures from mismatched docstrings.
d1d6ebb
to
b4070eb
Compare
cc1b23f
to
f1d4451
Compare
289c261
to
1f09a52
Compare
Describe your changes
driver
onEventListener
toevent_listener_driver
.EventListener.handler
return value behavior. IfEventListener.handler
returnsNone
, the event will not be published to theevent_listener_driver
.EventListener.handler
return type toOptional[BaseEvent | dict]
.Issue ticket number and link
closes #1130
📚 Documentation preview 📚: https://griptape--1260.org.readthedocs.build//1260/