Skip to content

Releases: typeddjango/django-stubs

1.14.0

26 Jan 10:44
5338769
Compare
Choose a tag to compare

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

1.13.2

21 Jan 12:37
7d50e5b
Compare
Choose a tag to compare

What's Changed

Mypy plugin fixes

  • Avoid index errors that cause Mypy to raise Internal Error by @jimmylai in #1317

Strings/translations

  • Enhance support for gettext_lazy in AdminSite and ModelAdmin by @rclement in #1296
  • Support lazy strings for form errors and ValidationError by @mschoettle in #1319
  • Add support for send_mail subject using gettext_lazy by @mschoettle in #1304
  • Add FAQ entry regarding StrPromise to README by @mschoettle in #1320

GeoDjango

Decorators

  • Fix @classproperty decorator by @intgr in #1287
  • Improve types of django.contrib.admin.decorators by @flaeppe in #1267
  • Improve ModelAdmin and decorator hints and attributes, add tests by @intgr in #1292
  • Improve system check registry hints by @intgr in #1249
  • Fix override_settings decorator typing by @martinlehoux in #1322

Other type stubs changes

Housekeeping

CI

Dependency updates

New Contributors

Full Changelog: 1.13.1...1.13.2

Version 1.13.1

08 Dec 09:19
090aea6
Compare
Choose a tag to compare

What's Changed

Fixes

  • Fix hasattr(settings) AssertionError with mypy 0.990 by @intgr in #1239

Housekeeping

Continuous integration

Dependency updates

New Contributors

Full Changelog: 1.13.0...1.13.1

Version 1.13.0 and django-stubs-ext@0.7.0

03 Nov 10:28
d489959
Compare
Choose a tag to compare

What's Changed

Read more

Release django-stubs@1.12.0

17 Jun 15:16
d6a9a4e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/v1.11.0...django-stubs@1.12.0

Release django-stubs-ext@0.5.0

17 Jun 15:12
d6a9a4e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/v1.11.0...django-stubs-ext@0.5.0

Version 1.11.0

24 May 09:24
4a90ad9
Compare
Choose a tag to compare
  • mypy 0.950 support

Version 1.10.1

12 Apr 14:45
4e3f9d6
Compare
Choose a tag to compare
Version 1.10.1

Version 1.10.0

26 Mar 06:26
3c58270
Compare
Choose a tag to compare
Version 1.10.0

Version 1.9.0

04 Sep 08:54
a33d8a9
Compare
Choose a tag to compare
Version 1.9.0