v0.3.0
Breaking Changes:
@eventsdecorator- Argument
prefixis removed. - The generated
__init__method will always call the original or the super__init__method before assigning event fields. - Accepts both
Eventandeventannotations simultaneously and generates necessary fields/properties if any is found.
- Argument
Added:
event_key()can be used to use a different key when using the@eventsdecorator for event properties.
Changed:
EventHandlerCollectionis now@runtime_checkable.@eventswill look for an annotation of typeEventHandlerCollectionif collection attribute name is not specified.event()constructor also accepts a direct accessor tuple instead of a function returning an accessor tuple.
Full Changelog: v0.2.2...v0.3.0