v0.10.0rc0
Pre-release- 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
- ci: use reusable ci workflow by @tlambert03 in #241
- ci(dependabot): bump actions/upload-artifact from 3 to 4 by @dependabot in #249
- ci(dependabot): bump actions/setup-python from 4 to 5 by @dependabot in #248
- ci(pre-commit.ci): autoupdate by @pre-commit-ci in #247
- ci(dependabot): bump conda-incubator/setup-miniconda from 2 to 3 by @dependabot in #245
- ci(dependabot): bump CodSpeedHQ/action from 1 to 2 by @dependabot in #246
- fix: fix 3.7 build by @tlambert03 in #250
- ci(pre-commit.ci): autoupdate by @pre-commit-ci in #251
- fix: add and fix copy operators by @Czaki in #255
- ci(dependabot): bump actions/cache from 3 to 4 by @dependabot in #253
- ci(dependabot): bump pypa/cibuildwheel from 2.16.2 to 2.16.4 by @dependabot in #256
- fix: fix connect_setattr on dataclass field signals by @tlambert03 in #258
- feat: emit the old value as second argument in Signals from SignalGroupDescriptor (evented dataclass) by @getzze in #257
- Drop python 3.7 by @tlambert03 in #268
- ci(dependabot): bump pypa/cibuildwheel from 2.16.4 to 2.16.5 by @dependabot in #263
- docs: Update README.md with
make build
by @tlambert03 in #270 - ci: inherit secrets in reusable workflow by @tlambert03 in #266
- ci(pre-commit.ci): autoupdate by @pre-commit-ci in #264
- chore: add future warning for maxargs in connect_setattr/setitem by @tlambert03 in #259
- docs: Update README.md with evented containers by @tlambert03 in #272
- refactor!: New SignalGroup that does not subclass SignalInstance by @tlambert03 in #269
New Contributors
Full Changelog: v0.9.5...v0.10.0rc0