Skip to content

4.2.3

Compare
Choose a tag to compare
@intgr intgr released this 29 Jun 17:10
· 358 commits to master since this release
2ea83a7

This version fixes two regressions in previons django-stubs release and also a few other fixes and improvements. Special thanks to @GabDug for contributing regression fixes on a short order.

This time there is no corresponding release of django-stubs-ext.

Stubs fixes

  • Fixed type error when subclassing AppConfig and assigning string to default_auto_field by @GabDug in #1596
  • Fixed type error when subclassing MiddlewareMixin.__call__() and using return self.get_response() by @GabDug in #1595
  • Allow None as redirect_field_name value for @user_passes_test and @login_required decorators by @JoeHitchen in #1600

Plugin fixes

  • Fixed long-standing issue with Date(Time)Field when using mypy setting disallow_any_explicit by @sobolevn in #1599

Stubs changes

  • Added BigIntegerField.MAX_BIGINT attribute by @asottile in #1598
  • Improved Jinja2 types and updated pytest-mypy-plugins by @sobolevn in #1601

CI/Testing

  • Run tests in multiple shards and all Python versions by @sobolevn in #1603

Housekeeping

  • Converted _typeshed.Self usages to typing_extensions.Self (PEP 673) by @intgr in #1591
  • Version 4.2.3 release (django-stubs only) by @intgr in #1604

New Contributors

Full Changelog: 4.2.2...4.2.3