Skip to content

3.14.5

Compare
Choose a tag to compare
@intgr intgr released this 05 Dec 19:20
· 76 commits to master since this release
2cee23a

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 extra djangorestframework-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

  • Allow None for several Field constructor arguments by @intgr in #498

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 and ListSerializer method to_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