Fix aiofiles.base.AsyncBase.__iter__ (#5750)

Fixes #5725.

This doesn't actually work properly in mypy.
This commit is contained in:
Jelle Zijlstra
2021-07-11 00:58:10 -07:00
committed by GitHub
parent 42eec29eed
commit 80591d9f99

View File

@@ -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]):