Value of _Row
not filled in for fully-typed queryset methods
#1849
Labels
bug
Something isn't working
_Row
not filled in for fully-typed queryset methods
#1849
What's wrong
In order to work around #1845 I tried this:
This almost works! That is, it works for
Foo.objects.values()
, and with theFooQuerySet
for.filter().special_get()
. The rest of it does not work:If you want this to work completely, the only choice, as far as I can tell, is manually implementing a manager, not using
from_queryset()
, and re-typing every single manager method—not just.values()
and others that change_Row
, butfilter()
,all()
, etc—literally all of them!System information
python
version: 3.11django
version: 4.2mypy
version: 1.6.1 (also happens with 1.7 and 1.8-dev versions)django-stubs
version: 4.2.6django-stubs-ext
version: 4.2.5The text was updated successfully, but these errors were encountered: