3.14.5
Headline changes
-
mypy 1.7: Recommended mypy version updated to 1.7.x
-
Removed direct mypy dependency. If you are using mypy, please add an explicit
mypy
dev dependency to your project, or install djangorestframework-stubs with the extradjangorestframework-stubs[compatible-mypy]
.Mypy remains the only supported type checker. Improvements for other type checkers may be considered in the future, pull requests welcome. See #1628 for details.
Stubs fixes
Stubs improvements
- Updated
Field
subclasses kwargs-only parameters by @intgr in #491 - Added all stubs reported missing by stubtest by @intgr in #499
- Improved
Serializer.to_representation()
return type by @4c0n in #504 - Improved
BaseSerializer
andListSerializer
methodto_representation()
by @intgr in #509 - Allow
http.HTTPMethod
enum values in@action()
decorator by @sshishov in #512
Housekeeping
- Dropped hard dependency on mypy by @intgr in #495
- Tests: Allowlist stubtest
@cached_property
error by @intgr in #503 - Upgraded to mypy 1.7.0 by @intgr in #506
New Contributors
Full Changelog: 3.14.4...3.14.5