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

nocarryr / python-dispatch / 43346514129
97%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2026 01:39AM 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

13 Nov 2026 01:39AM UTC coverage: 96.892% (-0.1%) from 97.032%
43346514129

push

github

web-flow
Improve observable copy and dictionary updates (#152)

## Summary
Clarify observable container typing and bring dictionary updates closer to the standard dict API.

- Define an abstract shallow-copy contract and preserve nested observable snapshots.
- Accept mapping, iterable-pair and keyword inputs in `ObservableDict.update`, preserving single notifications and reporting partial changes when an input fails. Document the 0.3.0 behavior change, including the `other` keyword change.
- Annotate in-place list addition with iterable input and identity-preserving return; use a narrow mypy ignore for comparison with overloaded `list.__add__`.
- Add regression tests for update inputs, partial failures, nested copies and in-place addition. The non-blocking mypy baseline decreases from five diagnostics to two, with the in-place operator diagnostic explicitly suppressed.

## Validation
- Python 3.13: 101 core tests and doctests, plus 16 plugin tests passed.
- Python 3.11 and 3.14: 39 focused property tests passed on each.
- Ruff, Pylance signature and syntax checks, and strict Sphinx HTML build passed.

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

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

## Summary by CodeRabbit

* **Improvements**
  * Observable dictionary updates accept a mapping or iterable of key-value pairs, along with keyword entries. Changed values trigger a single notification; if an update fails after making changes, those changes are still reported.
  * In-place addition to observable lists preserves the list’s identity and emits a property notification.

* **Documentation**
  * Added `update` to the documented methods for observable dictionaries.

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

45 of 47 new or added lines in 1 file covered. (95.74%)

873 of 901 relevant lines covered (96.89%)

3.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.61
-0.17% pydispatch/properties.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.14 - 43346514129.1 13 Nov 2026 01:40AM UTC 10
96.67
GitHub Action Run
2 run-3.11 - 43346514129.2 13 Nov 2026 01:40AM UTC 10
96.12
GitHub Action Run
3 run-3.13 - 43346514129.3 13 Nov 2026 01:40AM UTC 10
96.12
GitHub Action Run
4 run-3.12 - 43346514129.4 13 Nov 2026 01:40AM UTC 10
96.12
GitHub Action Run
Source Files on build 43346514129
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7e53537a on github
  • Prev Build on master (#43305918826)
  • Next Build on master (#43443514062)
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