Skip to content

🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack#15038

Merged
tiangolo merged 1 commit intomasterfrom
no-yield-taskgroup
Mar 1, 2026
Merged

🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack#15038
tiangolo merged 1 commit intomasterfrom
no-yield-taskgroup

Conversation

@tiangolo
Copy link
Member

@tiangolo tiangolo commented Mar 1, 2026

🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack

Ref: https://peps.python.org/pep-0789/

Discovered by extrapolating insights by @graingert while discussing another comparable external use case.

@tiangolo tiangolo added the bug Something isn't working label Mar 1, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 1, 2026

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing no-yield-taskgroup (65d01e3) with master (c796ba4)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (6038507) during the generation of this report, so c796ba4 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@tiangolo tiangolo marked this pull request as ready for review March 1, 2026 18:15
@tiangolo tiangolo merged commit 8a9258b into master Mar 1, 2026
31 checks passed
@tiangolo tiangolo deleted the no-yield-taskgroup branch March 1, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant