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

Convert __anext__ calls on Python 3.10+ #960

Open
DarkLight1337 opened this issue Aug 7, 2024 · 0 comments
Open

Convert __anext__ calls on Python 3.10+ #960

DarkLight1337 opened this issue Aug 7, 2024 · 0 comments

Comments

@DarkLight1337
Copy link

Python 3.10 introduces the anext builtin which calls __anext__ on the provided async iterator. It would be great if pyupgrade could automatically convert legacy async_iterator.__anext__() calls into anext(async_iterator) upon upgrading to Python 3.10 or above.

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

No branches or pull requests

1 participant