Passing iterable of integers to lookup model by ManyToManyField
throws error in mypy
#2243
Labels
bug
Something isn't working
ManyToManyField
throws error in mypy
#2243
Bug report
What's wrong
I have the following models
When I look up a group by its users like so
I get the following error from mypy:
How is that should be
Passing an iterable of integers to the lookup should be ok and not generate errors, because Django can deal with it.
System information
python
version: 3.11django
version: 5.0.6mypy
version: 1.10.0django-stubs
version: 5.0.2django-stubs-ext
version: 5.0.2The text was updated successfully, but these errors were encountered: