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

nocarryr / python-dispatch / 43267033022
97%

Build:
DEFAULT BRANCH: master
Ran 12 Nov 2026 05:13PM 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 05:12PM UTC coverage: 97.445% (+0.006%) from 97.439%
43267033022

push

github

web-flow
Align weak-method callback signatures (#150)

## Summary
Align weak-method callback signatures and clarify related types as an incremental typing improvement.

- Change async registration to `add_method(callback, loop)`, accept extra keywords, and update the dispatch call site. A loop remains required at runtime: the statically compatible signature does not make loop-free calls valid on the async subclass.
- Rename the `m` keyword to `callback` in base registration and deletion, and to `obj` in `isfunction`. Document the breaking changes with important and versionchanged notices for 0.3.0.
- Add annotations for callable checks and the async event-loop map, plus regression tests for keyword and positional calls, bound methods, and missing loops.
- Reduce the existing non-blocking mypy baseline from eight diagnostics to seven; the remaining property and optional-callback issues are deferred.

## Validation
- Python 3.13: 76 core/docs tests passed before the final parameter renames; 39 focused callback and dispatch tests passed after them.
- Python 3.11 and 3.14: 28 focused tests passed before the final renames, and nine utility tests passed after them.
- Ruff, Pylance signature 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

* **API Changes**
  * Async callback registration now takes the callback before the event loop. An event loop is still required; omitting it raises a `TypeError`.
  * Callback utility keyword parameters have been renamed to `callback` and `obj`. Calls using the previous keyword names should be updated; positional calls are unchanged.
* **Documentation**
  * Added reference documentation for the `isfunction` utility and clarified callback keyword names and async argument ordering.

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

16 of 16 new or added lines in 3 files covered. (100.0%)

839 of 861 relevant lines covered (97.44%)

3.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 43267033022.1 12 Nov 2026 05:13PM UTC 10
96.63
GitHub Action Run
2 run-3.11 - 43267033022.2 12 Nov 2026 05:13PM UTC 10
96.63
GitHub Action Run
3 run-3.12 - 43267033022.3 12 Nov 2026 05:13PM UTC 10
96.63
GitHub Action Run
4 run-3.14 - 43267033022.4 12 Nov 2026 05:13PM UTC 10
97.21
GitHub Action Run
Source Files on build 43267033022
  • Tree
  • List 10
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4d5e6daa on github
  • Prev Build on master (#43259978033)
  • Next Build on master (#43305918826)
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