Open matsui-goga opened 1 year ago
django-stubs/db/models/query.pyi has the definition of bulk_create and its async variant.
django-stubs/db/models/query.pyi
bulk_create
def bulk_create( self, objs: Iterable[_T], batch_size: Optional[int] = ..., ignore_conflicts: bool = ..., update_conflicts: Optional[Sequence[str]] = ..., update_fields: Optional[Sequence[str]] = ..., ) -> List[_T]: ...
There are two mistakes.
update_conflits
bool
unique_fields
Optional[Sequence[str]]
django-stubs/db/models/query.pyi
has the definition ofbulk_create
and its async variant.There are two mistakes.
update_conflits
type should bebool
unique_fields
whose type isOptional[Sequence[str]]