Skip to content

chore: adopt modern-di 2.25 integration seams#27

Merged
lesnik512 merged 1 commit into
mainfrom
chore/adopt-2.25-seams
Jul 7, 2026
Merged

chore: adopt modern-di 2.25 integration seams#27
lesnik512 merged 1 commit into
mainfrom
chore/adopt-2.25-seams

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

  • Replace container.providers_registry.add_providers(...) reach-in in setup_di with container.add_providers(...).
  • Replace the isinstance(dep, AbstractProvider) dispatch in Dependency.__call__ with container.resolve_dependency(...) — semantics are identical (provider -> resolve_provider, type -> resolve).
  • Bump the modern-di floor to >=2.25,<3.

Upstream: modern-python/modern-di#283

Test plan

  • just lint-ci
  • just test-ci (100% coverage)

Replace the providers_registry reach-in with container.add_providers(),
and the isinstance-on-AbstractProvider dispatch with
container.resolve_dependency() now that modern-di ships both as blessed
integration seams. Bump the modern-di floor to >=2.25,<3.
@lesnik512 lesnik512 merged commit 7ad7a60 into main Jul 7, 2026
6 checks passed
@lesnik512 lesnik512 deleted the chore/adopt-2.25-seams branch July 7, 2026 19:19
@lesnik512 lesnik512 mentioned this pull request Jul 7, 2026
2 tasks
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