Skip to content

Commit 729a885

Browse files
FabioGNRFabio Waljaard
andauthored
Fix typing for ReverseRelation __aiter__ method (#1959)
Co-authored-by: Fabio Waljaard <[email protected]>
1 parent 65a61a2 commit 729a885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tortoise/fields/relational.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __getitem__(self, item: int) -> MODEL:
9191
def __await__(self) -> Generator[Any, None, list[MODEL]]:
9292
return self._query.__await__()
9393

94-
async def __aiter__(self) -> AsyncGenerator[Any, MODEL]:
94+
async def __aiter__(self) -> AsyncGenerator[MODEL, None]:
9595
if not self._fetched:
9696
self._set_result_for_query(await self)
9797
for val in self.related_objects:

0 commit comments

Comments
 (0)