Skip to content

📝 Fix docstring example for TaskGroup.soonify()#269

Merged
svlandeg merged 6 commits intofastapi:mainfrom
asifr:main
Mar 4, 2026
Merged

📝 Fix docstring example for TaskGroup.soonify()#269
svlandeg merged 6 commits intofastapi:mainfrom
asifr:main

Conversation

@asifr
Copy link
Contributor

@asifr asifr commented Dec 7, 2024

The docstring in TaskGroup incorrectly gave an example like if not result1.pending but SoonValue does not have a pending attribute. The example should check if result1.ready instead.

The docstring incorrectly gave an example like `if not result1.pending` but SoonValue does not have a a pending attribute. The example should check `if result1.ready` instead.
@svlandeg svlandeg added the docs Improvements or additions to documentation label Feb 24, 2025
@svlandeg svlandeg changed the title Fix docstring example in _main.py TaskGroup from .pending to .ready 📝 Fix docstring example for TaskGroup.soonify() Feb 24, 2025
Copy link
Member

@YuriiMotov YuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

LGTM!

@svlandeg svlandeg merged commit 5e63662 into fastapi:main Mar 4, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants