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
AppConfigand assigning string todefault_auto_fieldby @GabDug in #1596 - Fixed type error when subclassing
MiddlewareMixin.__call__()and usingreturn self.get_response()by @GabDug in #1595 - Allow
Noneasredirect_field_namevalue for@user_passes_testand@login_requireddecorators by @JoeHitchen in #1600
Plugin fixes
- Fixed long-standing issue with
Date(Time)Fieldwhen using mypy settingdisallow_any_explicitby @sobolevn in #1599
Stubs changes
- Added
BigIntegerField.MAX_BIGINTattribute by @asottile in #1598 - Improved Jinja2 types and updated
pytest-mypy-pluginsby @sobolevn in #1601
CI/Testing
Housekeeping
- Converted
_typeshed.Selfusages totyping_extensions.Self(PEP 673) by @intgr in #1591 - Version 4.2.3 release (django-stubs only) by @intgr in #1604
New Contributors
- @JoeHitchen made their first contribution in #1600
Full Changelog: 4.2.2...4.2.3