Honor return annotations of async pytest fixtures

Async fixtures skipped the annotation branch, so a `-> T` annotation was
ignored and only the body was inferred. Infer the annotation directly:
the awaited value for coroutines, and the yielded value for annotated
async generators. Add cases where the body is not inferable.

Also drop the tooling note from the AUTHORS entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Abdullah AhmedandClaude Sonnet 5.5 committed 2026-10-12 04:52:32 -04:00
1 parent d8efff8e30
commit 3f7e8adddc
3 files changed
+35 -5

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ Code Contributors
- Dhanraj E (@Dhanu-dynamic) <dhanraj@labs.digiscrypt.com>
- Charan Rathore (@charan-rathore)
- Abdullah Ahmed (@abdull-ah-med) (with OpenAI Codex assistance)
- Abdullah Ahmed (@abdull-ah-med)
And a few more "anonymous" contributors.