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
- 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
- Support passing lazy strings to utils.text functions by @ds-cbo in #1344
- Add PASSWORD_RESET_TIMEOUT_DAYS by @christianbundy in #1332
- Improve types of
as_sql()
andas_<engine>()
methods by @intgr in #1315
Housekeeping, dependencies
- Update to mypy 0.991 for compatible-mypy & CI by @intgr in #1260
- Version 1.14.0 release by @intgr in #1343
New Contributors
- @christianbundy made their first contribution in #1332
- @ds-cbo made their first contribution in #1344
Full Changelog: 1.13.2...1.14.0