Skip to content

Conversation

@aleksul
Copy link

@aleksul aleksul commented Apr 12, 2025

Adds possibility to get and modify response by receiving it when yield-ing in generator dependencies.

To accomplish it, created ContextManagerFromGenerator which is mostly similar to contextmanager decorator from contextlib, but allows calling asend before __aexit__, so that we can pass response upon success.

Fixes #3500

@github-actions

This comment was marked as outdated.

@aleksul aleksul force-pushed the aleksul/dependencies-response-in-yield branch from abc82f0 to 31b72e2 Compare April 12, 2025 03:29
@aleksul aleksul force-pushed the aleksul/dependencies-response-in-yield branch from 31b72e2 to 9338618 Compare April 12, 2025 03:31
@github-actions
Copy link
Contributor

@svlandeg svlandeg added the feature New feature or request label Apr 17, 2025
@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Sep 5, 2025
@github-actions

This comment was marked as resolved.

@github-actions github-actions bot removed the conflicts Automatically generated when a PR has a merge conflict label Sep 5, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Sep 20, 2025
@github-actions
Copy link
Contributor

This pull request has a merge conflict that needs to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Automatically generated when a PR has a merge conflict feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow access to the path operation's Response from within Dependencies using yield

3 participants