Repository navigation
Conversation
…inimum Python version to 3.11.
… to built-in generics and union syntax.
…and PyPy, and publish with PyPI trusted publishing.
…py.typed and mypy runs in strict mode. Modifier factories now receive the target as an explicit keyword argument.
…Callable handlers no longer write the subject into the shared extra arguments, which leaked it into other handlers of the same event.
…. Background tasks are now referenced and their errors reported, awaited publishing raises handler errors as an ExceptionGroup, and including handlers from a one-shot iterator works.
…h plain functions.
…ach of them. An unresolvable annotation on a non-subject argument no longer fails handler registration, including lazily evaluated annotations on Python 3.14.
… result type of executing a request.
…tures in the README, add a changelog and bump the version to 0.8.0.
dlski
force-pushed
the
dlski/modernize
branch
from
November 15, 2026 15:30
4bef0fb to
d859e7e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the project up to current Python and tooling. The minimum Python version is now 3.11 and the version is bumped to 0.8.0.
Changes
src/layout with tests intests/.py.typedand passes strict mypy; interfaces aretyping.Protocolclasses.BackgroundEventDispatcher,AwaitingEventDispatcher) replace thesync_modeflag, andLocalEventBus.drain()waits for background handlers.Request[R]base class givesexecute()a precise result type.A | B) is registered for each type.Fixes
include()with a one-shot iterator stored handlers but never called them.Breaking changes
Listed in
CHANGELOG.md. The main ones are the removal ofsync_mode, the explicittargetkeyword inModifierFactory.create, and immutableActionSubject/ActionResult.Before the next release
ci.yml, environmentpypi).CODECOV_TOKENrepository secret.