Skip to content

chore: adopt modern-di 2.25 integration seams#4

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

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

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

  • Replace the container.providers_registry.add_providers(...) reach-in in setup_di with container.add_providers(...).
  • Replace the isinstance-on-AbstractProvider dispatch in _resolve_di_params with container.resolve_dependency(...) (marker unwrapping in _parse_inject_params/FromDI is unchanged — resolve_dependency maps exactly onto the prior provider-vs-type branch).
  • Bump the modern-di floor to >=2.25.0,<3 (style matches the existing pinned-patch floor).

Follows the seams added in modern-python/modern-di#283.

Test plan

  • just lint-ci (eof-fixer, ruff format/check, ty, planning index)
  • just test-ci (100% coverage, 10 passed)

Replace container.providers_registry.add_providers(...) with
container.add_providers(...), and the isinstance-on-AbstractProvider
dispatch in _resolve_di_params with container.resolve_dependency(...).
Bump the modern-di floor to >=2.25.0,<3.
@lesnik512 lesnik512 merged commit da92b26 into main Jul 7, 2026
6 checks passed
@lesnik512 lesnik512 deleted the chore/adopt-2.25-seams branch July 7, 2026 19:19
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