django-stubs
django-stubs copied to clipboard
Unexpected type argument required for django.db.models.lookups.Lookup
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
pythonversion: 3.12djangoversion: 5.1mypyversion: Latest stabledjango-stubsversion: 5.2django-stubs-extversion: Latest stable