Skip to content

v0.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:16
· 2 commits to main since this release
8a1c2df

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_backend now also accepts an object implementing the new psygnal.AsyncBackend protocol (as well as 'asyncio', 'anyio' or 'trio'), and returns that object. Setting a custom backend while a different one is active raises RuntimeError. 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=0 workaround for reproducible builds is reverted; set HATCH_MYPYC_BUILD_DIR to a fixed directory instead (#434, @tlambert03)

Documentation

  • Completed and fixed numpydoc Parameters sections for connect_child_events, qt.stop_emitting_from_queue, SelectableEventedList and others, which were rendering as plain text on the docs site (#435, @xuanku-001)
Maintenance (2 PRs)

New Contributors

Full Changelog: v0.16.1...v0.17.0