sbdchd / django-types

:doughnut: Type stubs for Django
MIT License
188 stars 62 forks source link

Can you make ManyToManyField generic? #52

Closed yuliswe closed 2 years ago

sbdchd commented 2 years ago

I think some or most of the CI complaints can be fixed by using _T instead of _M since _T bound is only Model instead of Model | None that _M has

bellini666 commented 2 years ago

Hey! I just added ManyToMany typing in this PR: https://github.com/sbdchd/django-types/pull/55/commits/6530d6565824c711343c2cd691f47006b49ad6c2

Still need to fix some things on that PR tough....

bellini666 commented 2 years ago

Just a FYI, This change was superseded by https://github.com/sbdchd/django-types/pull/63 which was already merged, so it can probably be closed