Skip to content

Update django-stubs to 6.0.2#6478

Merged
browniebroke merged 1 commit intomainfrom
pyup-update-django-stubs-6.0.1-to-6.0.2
Apr 1, 2026
Merged

Update django-stubs to 6.0.2#6478
browniebroke merged 1 commit intomainfrom
pyup-update-django-stubs-6.0.1-to-6.0.2

Conversation

@pyup-bot
Copy link
Copy Markdown
Collaborator

@pyup-bot pyup-bot commented Apr 1, 2026

This PR updates django-stubs[compatible-mypy] from 6.0.1 to 6.0.2.

Changelog

6.0.2

What's Changed

We now officially support `mypy1.20`.
Since this release we run `ty` over our test cases.

* Add missing `swappable` parameter to ForeignKey and OneToOneField by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3204
* Support WithAnnotations TypedDict fields in queryset validation by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3208
* Add `backend` attribute stub for authenticated users by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3210
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci[bot] in https://github.com/typeddjango/django-stubs/pull/3214
* chore(deps): update dependency uv_build to >=0.11.0,<0.12.0 by renovate[bot] in https://github.com/typeddjango/django-stubs/pull/3216
* Reparametrize implicit generic QuerySet subclasses by federicobond in https://github.com/typeddjango/django-stubs/pull/3217
* Fix `in` operator false positive with union types by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3206
* Refactor auto reparametrize to reduce code duplication by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3219
* Allow missing config section when `DJANGO_SETTINGS_MODULE` is set by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3223
* Fix `NestedObjects.nested` return type to `list[Any]` by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3226
* Update HttpRequest path methods to match Django 5.x defaults by 01xnikhil in https://github.com/typeddjango/django-stubs/pull/3227
* Resolve queryset annotate types for expressions with static ClassVar by federicobond in https://github.com/typeddjango/django-stubs/pull/3221
* Use `Model` instead of `Self` in parms and add `AltersData` inheritance by emmanuel-ferdman in https://github.com/typeddjango/django-stubs/pull/3228
* Expose django admin fieldset types in `django_stubs_ext` by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3237
* Migrate more typecheck tests to assert_type by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3234
* Include django and django-stubs versions in plugin config data by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3236
* Make Lookup type argument optional by defaulting _T to Any by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3235
* Fix mypy crash on QuerySet subclass with forward-referenced TypeVar by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3241
* Disallow mutually exclusive arguments `boolean` and `empty_value` in admin `display` decorator by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3242
* Use getattr for `field.attname` with fallback to `field.name` by UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/3248
* Resolve `.values()` field types on annotated querysets by federicobond in https://github.com/typeddjango/django-stubs/pull/3232
* Use newer syntax and enable more mypy configuration options by ngnpope in https://github.com/typeddjango/django-stubs/pull/3203

New Contributors
* 01xnikhil made their first contribution in https://github.com/typeddjango/django-stubs/pull/3227

**Full Changelog**: https://github.com/typeddjango/django-stubs/compare/6.0.1...6.0.2
Links

@pyup-bot pyup-bot added the update label Apr 1, 2026
@browniebroke browniebroke merged commit 1155a6a into main Apr 1, 2026
21 checks passed
@browniebroke browniebroke deleted the pyup-update-django-stubs-6.0.1-to-6.0.2 branch April 1, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants