Skip to content

Commit

Permalink
Add abulk_update (#227)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
DiegoHDMGZ authored Feb 3, 2024
1 parent 6eeb38e commit b5c86bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django-stubs/db/models/query.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...
Expand Down

0 comments on commit b5c86bf

Please sign in to comment.