Versioning
- This will be the last version to support
django-stubs5.2.
Butdjango-stubs6.0 will mostly also work if you use older Django. - This will be the last version to target
djangorestframework3.16 -- the next version will be updating to 3.17. - Mypy 1.20 is unblocked, but
django-stubshas is not yet released with official mypy 1.20.
Help wanted!
👉 Your help is needed to update stubs for djangorestframework version 3.17!
- See https://github.com/typeddjango/djangorestframework-stubs/blob/master/scripts/stubtest/allowlist_todo_317.txt for changed APIs
- Before starting work, check that nobody has yet opened a pull request on the same topic: https://github.com/typeddjango/djangorestframework-stubs/pulls
- Open pull requests, but keep changes small.
What's Changed
- Add stub for
APIClient.genericby @noamkush in #911 - Fix
RelatedField.get_querysettype by @amaral-daniel in #912 - Fix incorrect function signatures in
documentationandschemasby @emmanuel-ferdman in #909 - Remove redundant subclass method annotations in
paginationby @brianhelba in #917 - Fix propagation of
QuerySetrow-type through APIs handlingQuerySetby @brianhelba in #916 - Fix incomplete types in
rest_framework.schemasby @emmanuel-ferdman in #919 - Fix incomplete types in
rest_framework.utilsby @emmanuel-ferdman in #935
Housekeeping
- Update dependency mypy to >=1.13,<1.21 & fix tests by @intgr in #940
- Add
@overridedecorators & align mypy config with django-stubs by @intgr in #928 - CI: Fix Ruff unused
noqa: F811directive by @intgr in #926 - Version 3.16.9 release by @intgr in #942
New Contributors
- @amaral-daniel made their first contribution in #912
Full Changelog: 3.16.8...3.16.9