• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nocarryr / python-dispatch / 43305918826
97%

Build:
DEFAULT BRANCH: master
Ran 12 Nov 2026 09:01PM UTC
Jobs 4
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 09:00PM UTC coverage: 97.032% (-0.4%) from 97.445%
43305918826

push

github

web-flow
Fix observable property defaults and owner retention (#151)

## Summary
Fix observable property initialization and prevent property-owned
containers from keeping their owners alive.

- Replace the incompatible `_add_instance` overrides with a shared
default-building hook, storing per-instance observable defaults instead
of discarding them.
- Hold property owners weakly while retaining `.obj` identity when the
owner is alive. After collection, `.obj` is `None` and a mutation that
would notify the owner raises `ReferenceError`.
- Cover defaults, nested observables, first assignment, owner
collection, retained containers and standalone owner behavior; document
the behavior change for 0.3.0.
- Reduce the non-blocking mypy baseline from seven diagnostics to five.

## Validation
- Python 3.13: 82 core tests and doctests and 16 plugin tests passed;
the final focused property and dictionary tests passed (21 tests).
- Python 3.11 and 3.14: 20 focused property and dictionary tests passed
before the final additional assignment case.
- CI-scoped Ruff, Pylance signature check and strict Sphinx HTML build
passed.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* List and dictionary properties now receive independent observable
defaults for each instance.
* Observable values no longer keep their owning instance alive. Mutating
a retained value after its owner is collected raises an error.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

29 of 33 new or added lines in 1 file covered. (87.88%)

2 existing lines in 1 file now uncovered.

850 of 876 relevant lines covered (97.03%)

3.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
93.78
-1.36% pydispatch/properties.py

Coverage Regressions

Lines Coverage ∆ File
2
93.78
-1.36% pydispatch/properties.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 43305918826.1 12 Nov 2026 09:01PM UTC 10
96.23
GitHub Action Run
2 run-3.12 - 43305918826.2 12 Nov 2026 09:01PM UTC 10
96.23
GitHub Action Run
3 run-3.11 - 43305918826.3 12 Nov 2026 09:01PM UTC 10
96.23
GitHub Action Run
4 run-3.14 - 43305918826.4 12 Nov 2026 09:01PM UTC 10
96.8
GitHub Action Run
Source Files on build 43305918826
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5786d7a4 on github
  • Prev Build on master (#43267033022)
  • Next Build on master (#43346514129)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc