11from typing import Any
2- from typing import Iterator
2+ from typing import AsyncIterator
33from typing import List
44from typing import Mapping
55from typing import Optional
@@ -32,7 +32,7 @@ class AsyncResult(AsyncCommon):
3232 ) -> _TAsyncResult : ...
3333 async def partitions (
3434 self , size : Optional [int ] = ...
35- ) -> Iterator [List [Any ]]: ...
35+ ) -> AsyncIterator [List [Any ]]: ...
3636 async def fetchone (self ) -> Optional [Row ]: ...
3737 async def fetchmany (self , size : Optional [int ] = ...) -> List [Row ]: ...
3838 async def all (self ) -> List [Row ]: ...
@@ -56,7 +56,7 @@ class AsyncScalarResult(AsyncCommon):
5656 ) -> _TAsyncScalarResult : ...
5757 async def partitions (
5858 self , size : Optional [int ] = ...
59- ) -> Iterator [List [Any ]]: ...
59+ ) -> AsyncIterator [List [Any ]]: ...
6060 async def fetchall (self ) -> List [Any ]: ...
6161 async def fetchmany (self , size : Optional [int ] = ...) -> List [Any ]: ...
6262 async def all (self ) -> List [Any ]: ...
@@ -77,7 +77,7 @@ class AsyncMappingResult(AsyncCommon):
7777 ) -> _TAsyncMappingResult : ...
7878 async def partitions (
7979 self , size : Optional [int ] = ...
80- ) -> Iterator [List [Mapping [Any , Any ]]]: ...
80+ ) -> AsyncIterator [List [Mapping [Any , Any ]]]: ...
8181 async def fetchall (self ) -> List [Mapping [Any , Any ]]: ...
8282 async def fetchone (self ) -> Optional [Mapping [Any , Any ]]: ...
8383 async def fetchmany (
0 commit comments