Skip to content

v1.5.0

Choose a tag to compare

@pirate pirate released this 20 Mar 22:40
· 907 commits to main since this release
346589d

What's Changed

  • ✨ Added typed handler return enforcement via BaseEvent[T], event_result_type, and result_type.
  • 🧾 Tightened event_results_flat_dict() and event_results_flat_list() behavior plus result casting inside EventResult.
  • 🎯 Folded in the 1.4.8 typing follow-up so APIs like EventBus.expect() infer return types more precisely.
class GetConfigEvent(BaseEvent[dict[str, str]]):
    event_result_type = dict[str, str]

Docs: Return Value Handling · BaseEvent API · EventResult API

Full Changelog: 1.4.7...1.5.0