From 99239e3b443d93bf212b502a5d451a93be99bbea Mon Sep 17 00:00:00 2001 From: John Parton Date: Fri, 16 Aug 2024 10:25:03 -0500 Subject: [PATCH] Fix aiterator() signature. --- django-stubs/db/models/query.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/db/models/query.pyi b/django-stubs/db/models/query.pyi index 38c372467..c115bf9e6 100644 --- a/django-stubs/db/models/query.pyi +++ b/django-stubs/db/models/query.pyi @@ -42,7 +42,7 @@ class _BaseQuerySet(Generic[_T], Sized): def __and__(self, other: _BaseQuerySet[_T]) -> Self: ... def __or__(self, other: _BaseQuerySet[_T]) -> Self: ... def iterator(self, chunk_size: int = ...) -> Iterator[_T]: ... - async def aiterator(self, chunk_size: int = ...) -> Iterator[_T]: ... + def aiterator(self, chunk_size: int = ...) -> AsyncIterator[_T]: ... def aggregate(self, *args: Any, **kwargs: Any) -> dict[str, Any]: ... async def aaggregate(self, *args: Any, **kwargs: Any) -> dict[str, Any]: ... def get(self, *args: Any, **kwargs: Any) -> _T: ...