github typeddjango/django-stubs 1.14.0

latest releases: 5.0.4, 5.0.3, 5.0.2...
19 months ago

What's Changed

This release updates recommended mypy version to 0.991 and fixes a few regressions in the last release. No changes in Django version compatibility.

In addition to code contributions, I'd like to thank @flaeppe, @ngnpope and @sobolevn who helped out with reviews.

Fixes for regressions from last version

  • Fix some errors in GeoDjango stubs by @ciscorn in #1335
    • Fixes "OGRGeometry" has no attribute "__iter__" (not iterable) #1333
    • Fixes error: "bytes" has no attribute "tobytes" #1336
  • Allow returning Response from admin @action callbacks by @christianbundy in #1331
    • Fixes Recent change to admin action decorators bans return values #1330
  • Allow int, bool for data argument in test.client.Client.get() by @nils-van-zuijlen in #1345
    • Fixes Recent changes to test.client.Client.get() do not accept valid data types #1327

Mypy plugin fixes

  • Fix crash when filtering on implicit pk field on abstract model by @flaeppe in #1328
  • Suppress FieldDoesNotExist raised from attribute on class definition by @flaeppe in #1329
  • Fix crash when FK references unknown 'app_label' by @flaeppe in #1342

Enhancements

Housekeeping, dependencies

New Contributors

Full Changelog: 1.13.2...1.14.0

Don't miss a new django-stubs release

NewReleases is sending notifications on new releases.