Skip to content

Commit b6b4353

Browse files
authored
Allow fields being an Iterable in bulk_update (#2296)
And `abulk_update`
1 parent 7b7ddae commit b6b4353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/db/models/manager.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class BaseManager(Generic[_T]):
6161
update_fields: Collection[str] | None = ...,
6262
unique_fields: Collection[str] | None = ...,
6363
) -> list[_T]: ...
64-
def bulk_update(self, objs: Iterable[_T], fields: Sequence[str], batch_size: int | None = ...) -> int: ...
65-
async def abulk_update(self, objs: Iterable[_T], fields: Sequence[str], batch_size: int | None = ...) -> int: ...
64+
def bulk_update(self, objs: Iterable[_T], fields: Iterable[str], batch_size: int | None = ...) -> int: ...
65+
async def abulk_update(self, objs: Iterable[_T], fields: Iterable[str], batch_size: int | None = ...) -> int: ...
6666
def get_or_create(self, defaults: Mapping[str, Any] | None = ..., **kwargs: Any) -> tuple[_T, bool]: ...
6767
async def aget_or_create(self, defaults: Mapping[str, Any] | None = ..., **kwargs: Any) -> tuple[_T, bool]: ...
6868
def update_or_create(

0 commit comments

Comments
 (0)