django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Unexpected type argument required for django.db.models.lookups.Lookup

Open Tatsh opened this issue 6 months ago • 0 comments

Bug report

What's wrong

For some reason django.db.models.lookups.Lookup requires a type argument and I do not see anywhere in the file where the _T argument is actually used other than as a type argument for subclasses.

How is that should be

The type argument should not be required.

System information

  • OS: Linux
  • python version: 3.12
  • django version: 5.1
  • mypy version: Latest stable
  • django-stubs version: 5.2
  • django-stubs-ext version: Latest stable

Tatsh avatar May 01 '25 19:05 Tatsh