Repository navigation
Adds clear_queued for dropping queued callbacks and support for custom async backends in set_async_backend. Also fixes building with mypy 2.4 and restores C debug symbols in compiled builds. No breaking changes.
Features
- New
psygnal.clear_queued(thread=None)discards callbacks queued for a thread without invoking them, and returns how many it dropped (#441, @tlambert03) set_async_backendnow also accepts an object implementing the newpsygnal.AsyncBackendprotocol (as well as'asyncio','anyio'or'trio'), and returns that object. Setting a custom backend while a different one is active raisesRuntimeError. Custom backends are documented in the async guide (#439, @jacopoabramo)
Bug fixes
- psygnal builds again with mypy 2.4, which previously failed on type errors (found in Debian's rebuild) (#442, @margamanterola)
- Compiled (mypyc) builds include C debug symbols again. The
debug_level=0workaround for reproducible builds is reverted; setHATCH_MYPYC_BUILD_DIRto a fixed directory instead (#434, @tlambert03)
Documentation
- Completed and fixed numpydoc
Parameterssections forconnect_child_events,qt.stop_emitting_from_queue,SelectableEventedListand others, which were rendering as plain text on the docs site (#435, @xuanku-001)
Maintenance (2 PRs)
- Bump GitHub Actions:
setup-python,setup-headless-display-actionandCodSpeedHQ/action(#438, @dependabot[bot]) - pre-commit autoupdate (#440, @pre-commit-ci[bot])
New Contributors
- @margamanterola made their first contribution in #442
- @jacopoabramo made their first contribution in #439
- @xuanku-001 made their first contribution in #435
Full Changelog: v0.16.1...v0.17.0