From eb16dcc2c1b8a979acbe86c065a5ccfb98ddf568 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 28 Nov 2021 01:41:49 -0800 Subject: [PATCH] builtins: change aiter argument name (#6412) --- stdlib/builtins.pyi | 2 +- tests/stubtest_allowlists/py310.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index e6d297136..bb18586ca 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -999,7 +999,7 @@ class _PathLike(Protocol[_AnyStr_co]): def __fspath__(self) -> _AnyStr_co: ... if sys.version_info >= (3, 10): - def aiter(__iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... + def aiter(__async_iterable: AsyncIterable[_T]) -> AsyncIterator[_T]: ... @overload async def anext(__i: SupportsAnext[_T]) -> _T: ... @overload diff --git a/tests/stubtest_allowlists/py310.txt b/tests/stubtest_allowlists/py310.txt index 9fd59b843..80598ad95 100644 --- a/tests/stubtest_allowlists/py310.txt +++ b/tests/stubtest_allowlists/py310.txt @@ -126,7 +126,6 @@ tkinter.EventType.__new__ # Rest of these errors are new in Python 3.10: _markupbase.ParserBase.error asyncio.proactor_events._ProactorReadPipeTransport.__init__ -builtins.aiter distutils.command.bdist_wininst importlib.abc.ResourceReader.is_resource importlib.machinery.BuiltinImporter.create_module