sbdchd / django-types

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

Make managers in `django.contrib` generic #190

Closed hamdanal closed 1 year ago

hamdanal commented 1 year ago

This is similar to the base model and managers and to the user models and manager. It also reflects the runtime behavior as a model's manager is always associated with the model class itself (represented by Self), not the parent class where it is defined. Also did some trivial fixes in the those files.

sbdchd commented 1 year ago

Thank you!