You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that they should both be the same, and that for example {"a", "b", "c"} (a Set[str]) should pass on both (because internally to Django, the fields is consumed by iteration and re-cast to a list of Field instances IIRC)
The text was updated successfully, but these errors were encountered:
Good eye 🔍
Happy to close this as a duplicate if that PR is going to solve the issue (especially as I haven't gotten around to opening a PR myself yet; the eternal backlog 😄)
As a data point, though I think it unrelated, I encountered the typing discrepancy on a 3.2 project.
The
bulk_update
definition forBaseManager
is:django-stubs/django-stubs/db/models/manager.pyi
Line 79 in 36002a2
Note:
fields: Sequence[str]
which AFAIK is incorrect, and has already been fixed for
_QuerySet
in:django-stubs/django-stubs/db/models/query.pyi
Line 83 in 36002a2
Note:
fields: Iterable[str]
It seems to me that they should both be the same, and that for example
{"a", "b", "c"}
(aSet[str]
) should pass on both (because internally to Django, thefields
is consumed by iteration and re-cast to a list of Field instances IIRC)The text was updated successfully, but these errors were encountered: