Skip to content

feat: support modern-di 4 - #66

Draft
lesnik512 wants to merge 1 commit into
mainfrom
modern-di-4
Draft

lesnik512 wants to merge 1 commit into
mainfrom
modern-di-4

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Refs modern-python/modern-di#579.

Summary

Widen the requirement to modern-di>=3,<5. The lower bound stays: the plugin uses no 4.0-only API.

I re-checked the code, tests, README, CONTEXT.md and the ADR for 3.x-only names and behaviour (ContainerClosedWarning, use_lock, the registries, finalizer_errors, optional context defaults, close resetting overrides). None are used. The README override example uses with di_container.override(...), which resets on exit, so it does not depend on close clearing overrides.

Verification

  • modern-di 3.6.0 (latest on PyPI): lint-ci clean, test-ci 18 passed, 100% coverage.
  • modern-di 4.0 (wheel built from modern-di main f300c2e): ty check clean, 18 passed, 100% coverage.

Stays draft until modern-di 4.0.0 is on PyPI.

This branch has not been deployed

No deployments
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