Skip to content

v0.10.0rc0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 16 Feb 15:00
· 83 commits to main since this release
bb9611d
  • drops support for python 3.7

v0.10.0 brings an important fix and breaking change to the way SignalGroups work (SignalGroups are collections of signals and are used in both EventedModel and evented dataclasses)

Before v0.10.0, SignalGroup was a subclass of SignalInstance, meaning that if you wanted to connect to all signals on a group (let's call the group "events"), then you would directly use the SignalInstance attributes on the group:

# OLD way:
events = SomeSignalGroup()
# connect a callback to any signal emitted in the group
events.connect(on_any_event)

in v0.10.0 and beyond, you must use the "all" attribute to connect, disconnect, or otherwise interact with the aggregate signal instance:

# NEW way:
events = SomeSignalGroup()
# connect a callback to any signal emitted in the group
events.all.connect(on_any_event)

All of the old names inherited from SignalInstance are still accessible for now, with a deprecation warning. But you should migrate your code, as direct access (like events.connect) will be an AttributeError in v0.11

See #269 for details

What's Changed

New Contributors

Full Changelog: v0.9.5...v0.10.0rc0