Skip to content

Commit 763d9c9

Browse files
authored
AsyncResult partitions is any AsyncIterator (#202)
* partitions is an AsyncIterator * fix: import
1 parent db5b63b commit 763d9c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqlalchemy-stubs/ext/asyncio/result.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Any
2-
from typing import Iterator
2+
from typing import AsyncIterator
33
from typing import List
44
from typing import Mapping
55
from 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

Comments
 (0)