github typeddjango/django-stubs 4.2.3

latest releases: 5.1.1, 5.1.0, 5.0.4...
16 months ago

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

Don't miss a new django-stubs release

NewReleases is sending notifications on new releases.