Skip to content

fix: enforce mediator handler contracts#2

Open
aiagate wants to merge 1 commit into
mainfrom
codex/fix-mediator-type-safety
Open

fix: enforce mediator handler contracts#2
aiagate wants to merge 1 commit into
mainfrom
codex/fix-mediator-type-safety

Conversation

@aiagate

@aiagate aiagate commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Move Injector and handler registry to Mediator instances.
  • Validate handler contracts, reject duplicates, and support abstract/intermediate generic handlers safely.
  • Ship py.typed and add regression tests including isolated wheel type checking.

Verification

  • pytest: 17 passed, 98.10% coverage
  • Pyright: 0 errors
  • Ruff: clean
  • wheel/sdist build and examples: passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant