What's Changed
We now officially support mypy@1.20.
Since this release we run ty over our test cases.
- Add missing
swappableparameter to ForeignKey and OneToOneField by @emmanuel-ferdman in #3204 - Support WithAnnotations TypedDict fields in queryset validation by @emmanuel-ferdman in #3208
- Add
backendattribute stub for authenticated users by @emmanuel-ferdman in #3210 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #3214
- chore(deps): update dependency uv_build to >=0.11.0,<0.12.0 by @renovate[bot] in #3216
- Reparametrize implicit generic QuerySet subclasses by @federicobond in #3217
- Fix
inoperator false positive with union types by @emmanuel-ferdman in #3206 - Refactor auto reparametrize to reduce code duplication by @UnknownPlatypus in #3219
- Allow missing config section when
DJANGO_SETTINGS_MODULEis set by @emmanuel-ferdman in #3223 - Fix
NestedObjects.nestedreturn type tolist[Any]by @emmanuel-ferdman in #3226 - Update HttpRequest path methods to match Django 5.x defaults by @01xnikhil in #3227
- Resolve queryset annotate types for expressions with static ClassVar by @federicobond in #3221
- Use
Modelinstead ofSelfin parms and addAltersDatainheritance by @emmanuel-ferdman in #3228 - Expose django admin fieldset types in
django_stubs_extby @UnknownPlatypus in #3237 - Migrate more typecheck tests to assert_type by @UnknownPlatypus in #3234
- Include django and django-stubs versions in plugin config data by @UnknownPlatypus in #3236
- Make Lookup type argument optional by defaulting _T to Any by @UnknownPlatypus in #3235
- Fix mypy crash on QuerySet subclass with forward-referenced TypeVar by @UnknownPlatypus in #3241
- Disallow mutually exclusive arguments
booleanandempty_valuein admindisplaydecorator by @UnknownPlatypus in #3242 - Use getattr for
field.attnamewith fallback tofield.nameby @UnknownPlatypus in #3248 - Resolve
.values()field types on annotated querysets by @federicobond in #3232 - Use newer syntax and enable more mypy configuration options by @ngnpope in #3203
New Contributors
- @01xnikhil made their first contribution in #3227
Full Changelog: 6.0.1...6.0.2