Skip to content

fix Support for Django Manager/QuerySet #3648#3700

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3648
Open

fix Support for Django Manager/QuerySet #3648#3700
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3648

Conversation

@asukaminato0721
Copy link
Copy Markdown
Contributor

Summary

Fixes #3648

recognizes QuerySetSubclass.as_manager() on Django models and preserves the custom queryset type, and routes that Django manager assignment through the new helper and avoids inherited Model.objects assignment/override noise.

Test Plan

add test

@meta-cla meta-cla Bot added the cla signed label Jun 5, 2026
@asukaminato0721 asukaminato0721 changed the title fix Support for Django Manager/QuerySet #3648c fix Support for Django Manager/QuerySet #3648 Jun 5, 2026
@github-actions github-actions Bot added the size/m label Jun 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@asukaminato0721 asukaminato0721 marked this pull request as ready for review June 5, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Django Manager/QuerySet

1 participant