Skip to content

Fix aiofiles.base.AsyncBase.__iter__ #5750

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

Merged
merged 1 commit into from
Jul 11, 2021
Merged

Fix aiofiles.base.AsyncBase.__iter__ #5750

merged 1 commit into from
Jul 11, 2021

Conversation

JelleZijlstra
Copy link
Member

Fixes #5725.

This doesn't actually work properly in mypy; I'll report a bug for that.

Fixes #5725.

This doesn't actually work properly in mypy; I'll report a bug for that.
Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

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

Apparently async in front was a legacy thing that lacked version checks: https://www.python.org/dev/peps/pep-0492/#why-aiter-does-not-return-an-awaitable

@Akuli Akuli merged commit 80591d9 into master Jul 11, 2021
@Akuli Akuli deleted the JelleZijlstra-patch-2 branch July 11, 2021 07:58
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.

aiofiles: looping over file doesn't work
2 participants