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.
Python 3.10 introduces the
anext
builtin which calls__anext__
on the provided async iterator. It would be great ifpyupgrade
could automatically convert legacyasync_iterator.__anext__()
calls intoanext(async_iterator)
upon upgrading to Python 3.10 or above.