What's Changed
- Remove patching of
reveal_type()andreveal_locals()by @ngnpope in #3255 - Resolve
.values_list()field types on annotated querysets by @federicobond in #3253 - Add
__eq__to CaseInsensitiveMapping by @hauntsaninja in #3256 - Add an AI policy by @UnknownPlatypus in #3247
- Preserve NamedTuple row type when annotating values_list(named=True) querysets by @federicobond in #3261
- Use
TypedDictTypedirectly when merging typeddict by @UnknownPlatypus in #3262 - Prefetch related queryset incompatible type by @steele in #3263
- Fix
databasestype inSimpleTestCaseto useLiteral["__all__"]by @ahmedasar00 in #3264 - typing: Node methods return an instance of the subclass by @noamkush in #3265
- Fix row type lost when using
.annotate(...)on custom boundQuerySetby @UnknownPlatypus in #3271 - Refine types in html.pyi: Remove Incomplete and Any by @01xnikhil in #3270
- Improve type precision in template backends by @emmanuel-ferdman in #3276
- Update dependency django to v6.0.4 [SECURITY] by @renovate[bot] in #3278
- Cache apt packages for GDAL in CI by @UnknownPlatypus in #3268
- Loosen ListFilter.choices() return type to allow custom filter templates by @alessio-b2c2 in #3180
- Use
ignoreDepsto prevent Renovate from updating Python versions by @UnknownPlatypus in #3280 - Propagate
WithAnnotationsthrough customQuerySetmethods by @UnknownPlatypus in #3266 - Add debugging tip for yml tests in contributing guide by @UnknownPlatypus in #3284
- Widen
build_q_object_from_lookup_parametersparameter type by @alessio-b2c2 in #3277 - Fix
ListFilter.used_parametersand params types in admin filter stubs by @alessio-b2c2 in #3187 - Make LazyObject generic to improve
__deepcopy__return type by @ahmedasar00 in #3275 - Widen
namesarg toQuery.names_to_pathtoSequence[str]by @joshuadavidthomas in #3285 - Improve type precision and add missing attrs across utils stubs by @emmanuel-ferdman in #3290
- Improve types in contrib.auth.views by @01xnikhil in #3294
- Propagate Subquery output field type through generics by @federicobond in #3297
- Type-check
(a)get_or_createand(a)update_or_createkwargs by @federicobond in #3309 - Make Func generic over output_field by @federicobond in #3311
- Update mypy to 1.20.1 by @sobolevn in #3316
- Fix attname column by @UnknownPlatypus in #3318
New Contributors
- @steele made their first contribution in #3263
- @alessio-b2c2 made their first contribution in #3180
Full Changelog: 6.0.2...6.0.3