Skip to content

django-filter: preserve queryset model and row types in filter_queryset - #16494

Open
kalekseev wants to merge 1 commit into
python:mainfrom
kalekseev:fix/django-filter-queryset-types
Open

kalekseev wants to merge 1 commit into
python:mainfrom
kalekseev:fix/django-filter-queryset-types

Conversation

@kalekseev

Copy link
Copy Markdown

DjangoFilterBackend.filter_queryset() currently erases queryset types to Any; preserve the input model and row types, following the upstream filtering implementation.

Prepared with Codex.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant