Async functions without yields which return async iterables have wrong signature #1140
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
Non-generator (no yield) async functions which return async iterables, generators etc should have a return type of
Coroutine[Any, Any, AsyncIterable]
(replace AsyncIterable with AsyncGenerator or other relevant type)Actual behaviour
Non-generator (no yield) async functions which return async iterables, generators etc have a return type of
AsyncIterable
(replace AsyncIterable with AsyncGenerator or other relevant type)Logs
Code Snippet / Additional information
When run in Python, the expected output is produced:
The text was updated successfully, but these errors were encountered: