Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export container_context from that_depends #34

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Export container_context from that_depends #34

merged 2 commits into from
Jun 13, 2024

Conversation

vrslev
Copy link
Collaborator

@vrslev vrslev commented Jun 13, 2024

I often forget to enter container context when using context resources. When I do, it annoyes me to have to jump up to imports block and add import that_depends.providers manually. To prevent that, I suggest making it available as that_depends.container_context().

vrslev added 2 commits June 13, 2024 13:22
I often forget to enter container context when using context resources. When I do, it annoyes me to have to jump up to imports block and add `import that_depends.providers` manually. To prevent that, I suggest making it available as `that_depends.container_context()`.
@lesnik512 lesnik512 merged commit 9806191 into modern-python:main Jun 13, 2024
4 checks passed
@vrslev vrslev deleted the export-container-context branch June 13, 2024 12:04
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.

2 participants