From b5c86bf9157107064d408a1bd4d17cfe1ced5818 Mon Sep 17 00:00:00 2001 From: Diego Hurtado de Mendoza <34421725+DiegoHDMGZ@users.noreply.github.com> Date: Fri, 2 Feb 2024 19:58:08 -0500 Subject: [PATCH] Add `abulk_update` (#227) - Closes #225 ## Side note I'm not very familiar with the codebase, but I think the fix was not difficult. If there is much work required to close the issue, feel free to close this PR, so someone else more experienced could take the issue. --- django-stubs/db/models/query.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django-stubs/db/models/query.pyi b/django-stubs/db/models/query.pyi index fba695b26..38c372467 100644 --- a/django-stubs/db/models/query.pyi +++ b/django-stubs/db/models/query.pyi @@ -70,6 +70,9 @@ class _BaseQuerySet(Generic[_T], Sized): def bulk_update( self, objs: Iterable[_T], fields: Sequence[str], batch_size: int | None = ... ) -> int: ... + async def abulk_update( + self, objs: Iterable[_T], fields: Sequence[str], batch_size: int | None = ... + ) -> int: ... def get_or_create( self, defaults: MutableMapping[str, Any] | None = ..., **kwargs: Any ) -> tuple[_T, bool]: ...