Skip to content

Commit

Permalink
fix: fix bulk_create and abulk_create annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoft committed Oct 16, 2023
1 parent 06da6da commit e6ec1a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django-stubs/db/models/query.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ class _BaseQuerySet(Generic[_T], Sized):
objs: Iterable[_T],
batch_size: int | None = ...,
ignore_conflicts: bool = ...,
update_conflicts: Sequence[str] | None = ...,
update_conflicts: bool | None = ...,
update_fields: Sequence[str] | None = ...,
unique_fields: Sequence[str] | None = ...,
) -> list[_T]: ...
async def abulk_create(
self,
Expand All @@ -64,6 +65,7 @@ class _BaseQuerySet(Generic[_T], Sized):
ignore_conflicts: bool = ...,
update_conflicts: Sequence[str] | None = ...,
update_fields: Sequence[str] | None = ...,
unique_fields: Sequence[str] | None = ...,
) -> list[_T]: ...
def bulk_update(
self, objs: Iterable[_T], fields: Sequence[str], batch_size: int | None = ...
Expand Down

0 comments on commit e6ec1a5

Please sign in to comment.