google / pytype

A static type analyzer for Python code
https://google.github.io/pytype
Other
4.73k stars 276 forks source link

Change return types of AsyncGenerator's methods to coroutines. This brings pytype's definition in line with the definition on typeshed and reflects the fact that asynchronous generators defined using the `async def`/`yield` syntax have methods returning coroutines rather than just arbitrary awaitables. #1779

Closed copybara-service[bot] closed 6 days ago

copybara-service[bot] commented 1 week ago

Change return types of AsyncGenerator's methods to coroutines. This brings pytype's definition in line with the definition on typeshed and reflects the fact that asynchronous generators defined using the async def/yield syntax have methods returning coroutines rather than just arbitrary awaitables.