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 todefault_auto_field
by @GabDug in #1596 - Fixed type error when subclassing
MiddlewareMixin.__call__()
and usingreturn self.get_response()
by @GabDug in #1595 - Allow
None
asredirect_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 settingdisallow_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
Housekeeping
- Converted
_typeshed.Self
usages 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