Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Sep 23, 2024

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.

@copybara-service copybara-service bot changed the title Change return types of AsyncGenerator's methods to coroutines 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. Sep 24, 2024
…rings 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.

PiperOrigin-RevId: 678624460
@copybara-service copybara-service bot merged commit 57f8bd8 into main Sep 25, 2024
1 check passed
@copybara-service copybara-service bot deleted the cl/677779617 branch September 25, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants