8000 Fix aiofiles.base.AsyncBase.__iter__ (#5750) · python/typeshed@80591d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80591d9

Browse files
Fix aiofiles.base.AsyncBase.__iter__ (#5750)
Fixes #5725. This doesn't actually work properly in mypy.
1 parent 42eec29 commit 80591d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/aiofiles/aiofiles/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ _T_contra = TypeVar("_T_contra", contravariant=True)
99

1010
class AsyncBase(Generic[_T]):
1111
def __init__(self, file: str, loop: Any, executor: Any) -> None: ...
12-
async def __aiter__(self: Self) -> Self: ...
12+
def __aiter__(self: Self) -> Self: ...
1313
async def __anext__(self) -> _T: ...
1414

1515
class AiofilesContextManager(Generic[_T_co, _T_contra, _V_co]):

0 commit comments

Comments
 (0)
0