Releases: wise0704/python-cs-events
Releases · wise0704/python-cs-events
v0.5.0
v0.4.1
Changed:
@events
now treatscollection=""
the same ascollection=None
.
Full Changelog: v0.4.0...v0.4.1
v0.4.0
Breaking Changes:
- Module name
cs_events
→events
.
Changed:
EventHandlerCollection
now has__slots__
.- Removed
@final
fromEvent
to allow subclasses.@events
decorator will not detect subclasses to generate fields as before.
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Breaking Changes:
@events
decorator- Argument
prefix
is removed. - The generated
__init__
method will always call the original or the super__init__
method before assigning event fields. - Accepts both
Event
andevent
annotations 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@events
decorator for event properties.
Changed:
EventHandlerCollection
is now@runtime_checkable
.@events
will look for an annotation of typeEventHandlerCollection
if 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
v0.2.2
v0.2.1
v0.2.0
Added:
- Added
event
class for event property support. - Added
EventHandlerCollection
,EventHandlerList
, andEventHandlerDict
.
Changed:
- Decorator
@events
supports event properties.
Full Changelog: v0.1.0...v0.2.0