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
This prevents using Set[str], as it is not a subtype of Sequence (thats my actual issue with it).
How is that should be
Looking at the django source bulk_update transforms the fields argument by a list comprehension early, thus any iterable should work here. I suggest to widen the type info to Iterable[str].
The text was updated successfully, but these errors were encountered:
Bug report
What's wrong
The
fields
argument inbulk_update
is typed asSequence[str]
:django-stubs/django-stubs/db/models/query.pyi
Line 62 in a9e41a8
This prevents using
Set[str]
, as it is not a subtype ofSequence
(thats my actual issue with it).How is that should be
Looking at the django source
bulk_update
transforms thefields
argument by a list comprehension early, thus any iterable should work here. I suggest to widen the type info toIterable[str]
.The text was updated successfully, but these errors were encountered: