From 80591d9f9973672a01cfa1bdc67071315a211990 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 11 Jul 2021 00:58:10 -0700 Subject: [PATCH] Fix aiofiles.base.AsyncBase.__iter__ (#5750) Fixes #5725. This doesn't actually work properly in mypy. --- stubs/aiofiles/aiofiles/base.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/aiofiles/aiofiles/base.pyi b/stubs/aiofiles/aiofiles/base.pyi index b06adf680..a6197fbad 100644 --- a/stubs/aiofiles/aiofiles/base.pyi +++ b/stubs/aiofiles/aiofiles/base.pyi @@ -9,7 +9,7 @@ _T_contra = TypeVar("_T_contra", contravariant=True) class AsyncBase(Generic[_T]): def __init__(self, file: str, loop: Any, executor: Any) -> None: ... - async def __aiter__(self: Self) -> Self: ... + def __aiter__(self: Self) -> Self: ... async def __anext__(self) -> _T: ... class AiofilesContextManager(Generic[_T_co, _T_contra, _V_co]):