Skip to content

Added custom context manager support. #27

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Conversation

s3rius
Copy link
Member

@s3rius s3rius commented Mar 22, 2024

This PR fixes resolving context managers as dependencies if they are not decorated with context manager annotation.

So if you returned a class that implements contextmanager protocol, the resolver wouldn't call it's __enter__ statement during the dependency resolution.

Signed-off-by: Pavel Kirilin win10@list.ru

s3rius added 2 commits March 21, 2024 15:30
Signed-off-by: Pavel Kirilin <win10@list.ru>
Signed-off-by: Pavel Kirilin <win10@list.ru>
@s3rius s3rius merged commit b391bc8 into develop Mar 22, 2024
11 checks passed
@s3rius s3rius deleted the bugfix/not-decorated-managers branch March 22, 2024 11:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant