Update dependency django-stubs to v5.2.9 #29

Open
Renovate wants to merge 1 commit from renovate/django-stubs-5.x into frontend-new
Collaborator

This PR contains the following updates:

Package Change Age Confidence
django-stubs (changelog) ==5.1.2==5.2.9 age confidence

Release Notes

typeddjango/django-stubs (django-stubs)

v5.2.9

Compare Source

Version 5.2.9 will be the last version to target Django 5.2 -- the next version will be updating to 6.0!

🚀 We need your help: Adding Django 6.0 stubs

Many new Django 6.0 APIs are still missing stubs coverage, and changes to existing APIs are not covered.
If you are interested in contributing, please help by opening PRs (check that a PR does not exist already for your topic).

👉 Starting points

And by the way, we are still missing some things from previous Django versions too! Check earlier release note, other allowlist_todo*.txt files and #​1493 (comment)

🤝 You help us, we help you

If want to help but you are not sure how to implement something in stubs:

What's Changed

Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.8...5.2.9

v5.2.8

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.7...5.2.8

v5.2.7

Compare Source

What's Changed

Fixes a regression in django-stubs version 5.2.6:

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.6...5.2.7

v5.2.6

Compare Source

What's Changed

Improvements
Housekeeping & CI
Ruff
uv package manager

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.5...5.2.6

v5.2.5

Compare Source

What's Changed

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.4...5.2.5

v5.2.4

Compare Source

What's Changed

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.3...5.2.4

v5.2.3

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.2...5.2.3

v5.2.2

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.1...5.2.2

v5.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.2.0...5.2.1

v5.2.0

Compare Source

Important changes

  • We now support Django@​5.2 LTS release!
  • Partial Django support is moved to 5.0 from 4.2
  • We now also run all checks in this repo under mypy --strict mode
  • Minimal mypy version is updated to 1.13

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.3...5.2.0

v5.1.3

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.2...5.1.3


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [django-stubs](https://github.com/typeddjango/django-stubs) ([changelog](https://github.com/typeddjango/django-stubs/releases)) | `==5.1.2` → `==5.2.9` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/django-stubs/5.2.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/django-stubs/5.1.2/5.2.9?slim=true) | --- ### Release Notes <details> <summary>typeddjango/django-stubs (django-stubs)</summary> ### [`v5.2.9`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.9) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.8...5.2.9) Version 5.2.9 will be the last version to target Django 5.2 -- the next version will be updating to 6.0! ##### 🚀 We need your help: Adding Django 6.0 stubs Many new Django 6.0 APIs are still missing stubs coverage, and changes to existing APIs are not covered. If you are interested in contributing, **please help by opening PRs** (check that a PR does not exist already for your topic). ##### 👉 Starting points - [Django 6.0 release notes](https://docs.djangoproject.com/en/6.0/releases/6.0/) - [scripts/stubtest/allowlist\_todo\_django60.txt](https://github.com/typeddjango/django-stubs/blob/master/scripts/stubtest/allowlist_todo_django60.txt) file And by the way, we are still missing some things from previous Django versions too! Check earlier release note, other `allowlist_todo*.txt` files and [#&#8203;1493 (comment)](https://github.com/typeddjango/django-stubs/issues/1493#issuecomment-2105730206) ##### 🤝 You help us, we help you If want to help but you are not sure how to implement something in stubs: - [Check tutorials listed here](https://github.com/typeddjango/django-stubs/blob/master/CONTRIBUTING.md#tutorials) - [Or just open a discussion topic](https://github.com/typeddjango/django-stubs/discussions), feel free to ping [@&#8203;intgr](https://github.com/intgr) in the message. #### What's Changed - fix: allow `EmailMultiAlternatives` in `outbox` by [@&#8203;alexei](https://github.com/alexei) in [#&#8203;2922](https://github.com/typeddjango/django-stubs/pull/2922) - Fix infinite semantic analysis loop when using from\_queryset by [@&#8203;lee3jjang](https://github.com/lee3jjang) in [#&#8203;2935](https://github.com/typeddjango/django-stubs/pull/2935) - Fix dispatch\_uid type: str -> \_AnyHashable by [@&#8203;craigds](https://github.com/craigds) in [#&#8203;2950](https://github.com/typeddjango/django-stubs/pull/2950) - Update `get_auto_imports()` to also allow returning `None` by [@&#8203;jamesbeith](https://github.com/jamesbeith) in [#&#8203;2956](https://github.com/typeddjango/django-stubs/pull/2956) - Make LoginView generic over its form class by [@&#8203;slafs](https://github.com/slafs) in [#&#8203;2959](https://github.com/typeddjango/django-stubs/pull/2959) - fix: template type in template response by [@&#8203;alexei](https://github.com/alexei) in [#&#8203;2964](https://github.com/typeddjango/django-stubs/pull/2964) - fix: Annotate SessionStore with a type var for the Session type ([#&#8203;2056](https://github.com/typeddjango/django-stubs/issues/2056)) by [@&#8203;CharString](https://github.com/CharString) in [#&#8203;2969](https://github.com/typeddjango/django-stubs/pull/2969) - fix: `prefetch_related_objects` requires `Sequence` not `Iterable` by [@&#8203;emmanuel-ferdman](https://github.com/emmanuel-ferdman) in [#&#8203;2970](https://github.com/typeddjango/django-stubs/pull/2970) - Fix kwargs for `forms.widgets.Script` by [@&#8203;brianhelba](https://github.com/brianhelba) in [#&#8203;2973](https://github.com/typeddjango/django-stubs/pull/2973) - fix: django.contrib.gis.utils.LayerMapping attribute types by [@&#8203;kelvan](https://github.com/kelvan) in [#&#8203;2988](https://github.com/typeddjango/django-stubs/pull/2988) - Make all system checks return a `list`, not a `Sequence` by [@&#8203;brianhelba](https://github.com/brianhelba) in [#&#8203;2992](https://github.com/typeddjango/django-stubs/pull/2992) - Improve database-related check signatures by [@&#8203;brianhelba](https://github.com/brianhelba) in [#&#8203;2994](https://github.com/typeddjango/django-stubs/pull/2994) ##### Housekeeping - Update pyrefly to 0.44.0 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2927](https://github.com/typeddjango/django-stubs/pull/2927) - Update django to 5.2.9 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2928](https://github.com/typeddjango/django-stubs/pull/2928) - Renovate: mypy updates to widen accepted version range by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2921](https://github.com/typeddjango/django-stubs/pull/2921) - CI: Downgrade to Python 3.10 for 'test-older-django' by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2955](https://github.com/typeddjango/django-stubs/pull/2955) - Prepare for 5.2.9 release (without Django 6.0 changes) by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2995](https://github.com/typeddjango/django-stubs/pull/2995) - Version 5.2.9 release by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;3007](https://github.com/typeddjango/django-stubs/pull/3007) #### New Contributors - [@&#8203;lee3jjang](https://github.com/lee3jjang) made their first contribution in [#&#8203;2935](https://github.com/typeddjango/django-stubs/pull/2935) - [@&#8203;jamesbeith](https://github.com/jamesbeith) made their first contribution in [#&#8203;2956](https://github.com/typeddjango/django-stubs/pull/2956) - [@&#8203;slafs](https://github.com/slafs) made their first contribution in [#&#8203;2959](https://github.com/typeddjango/django-stubs/pull/2959) - [@&#8203;CharString](https://github.com/CharString) made their first contribution in [#&#8203;2969](https://github.com/typeddjango/django-stubs/pull/2969) - [@&#8203;emmanuel-ferdman](https://github.com/emmanuel-ferdman) made their first contribution in [#&#8203;2970](https://github.com/typeddjango/django-stubs/pull/2970) - [@&#8203;kelvan](https://github.com/kelvan) made their first contribution in [#&#8203;2988](https://github.com/typeddjango/django-stubs/pull/2988) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.8...5.2.9> ### [`v5.2.8`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.8) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.7...5.2.8) #### What's Changed - Run tests against the lowest supported django version by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2862](https://github.com/typeddjango/django-stubs/pull/2862) - fix: allow `django.shortcuts.resolve_url` to receive a str-promise by [@&#8203;alexei](https://github.com/alexei) in [#&#8203;2869](https://github.com/typeddjango/django-stubs/pull/2869) - fix: add type declarations for some missing settings by [@&#8203;alexei](https://github.com/alexei) in [#&#8203;2870](https://github.com/typeddjango/django-stubs/pull/2870) - fix: import all forms widgets by [@&#8203;alexei](https://github.com/alexei) in [#&#8203;2871](https://github.com/typeddjango/django-stubs/pull/2871) - Update assertContains and assertNotContains signatures by [@&#8203;SebCorbin](https://github.com/SebCorbin) in [#&#8203;2880](https://github.com/typeddjango/django-stubs/pull/2880) - Update middleware types by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2884](https://github.com/typeddjango/django-stubs/pull/2884) - Remove `str` from enum label types when we know for sure the labels are lazy by [@&#8203;rchen152](https://github.com/rchen152) in [#&#8203;2888](https://github.com/typeddjango/django-stubs/pull/2888) - Switch Dependabot to Renovate by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2893](https://github.com/typeddjango/django-stubs/pull/2893) - CI: Only run branch tests on Renovate branches where it's needed by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2899](https://github.com/typeddjango/django-stubs/pull/2899) - fix: in db.models make required\_db\_vendor str by [@&#8203;Tatsh](https://github.com/Tatsh) in [#&#8203;2909](https://github.com/typeddjango/django-stubs/pull/2909) - Run pyrefly over test cases by [@&#8203;rchen152](https://github.com/rchen152) in [#&#8203;2914](https://github.com/typeddjango/django-stubs/pull/2914) - Mypy 1.19 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2919](https://github.com/typeddjango/django-stubs/pull/2919) #### New Contributors - [@&#8203;alexei](https://github.com/alexei) made their first contribution in [#&#8203;2869](https://github.com/typeddjango/django-stubs/pull/2869) - [@&#8203;SebCorbin](https://github.com/SebCorbin) made their first contribution in [#&#8203;2880](https://github.com/typeddjango/django-stubs/pull/2880) - [@&#8203;rchen152](https://github.com/rchen152) made their first contribution in [#&#8203;2888](https://github.com/typeddjango/django-stubs/pull/2888) - [@&#8203;renovate](https://github.com/renovate)\[bot] made their first contribution in [#&#8203;2895](https://github.com/typeddjango/django-stubs/pull/2895) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.7...5.2.8> ### [`v5.2.7`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.7) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.6...5.2.7) #### What's Changed Fixes a regression in django-stubs version 5.2.6: - Fix PK field lookup for Django < 5.2 by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2860](https://github.com/typeddjango/django-stubs/pull/2860) - Version 5.2.7 release by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2864](https://github.com/typeddjango/django-stubs/pull/2864) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.6...5.2.7> ### [`v5.2.6`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.6) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.5...5.2.6) #### What's Changed ##### Improvements - Update `add_ordering` signature too by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2822](https://github.com/typeddjango/django-stubs/pull/2822) - Support `related_query_name` in `Model._meta.get_fields` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2821](https://github.com/typeddjango/django-stubs/pull/2821) - django.urls.resolve can also take \_StrPromise by [@&#8203;asottile](https://github.com/asottile) in [#&#8203;2826](https://github.com/typeddjango/django-stubs/pull/2826) - Add `strict_model_abstract_attrs` setting to allow `models.Model.objects` access by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2830](https://github.com/typeddjango/django-stubs/pull/2830) - Refactor `_replace_type_var` that can potentially cause cache problems by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2834](https://github.com/typeddjango/django-stubs/pull/2834) - Fix `union` / `intersection` / `difference` to support QuerySet using `values_list` and `values` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2829](https://github.com/typeddjango/django-stubs/pull/2829) - fix: allow to query decimal fields with int by [@&#8203;sk-](https://github.com/sk-) in [#&#8203;2838](https://github.com/typeddjango/django-stubs/pull/2838) - Fix the `log_action` deprecation notice by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2839](https://github.com/typeddjango/django-stubs/pull/2839) - BaseForm.add\_error: Use covariant types by [@&#8203;inducer](https://github.com/inducer) in [#&#8203;2849](https://github.com/typeddjango/django-stubs/pull/2849) - Allow to annotate existing model field de-selected via prior `.values`/`.values_list` calls by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2836](https://github.com/typeddjango/django-stubs/pull/2836) - Support `GenericPrefetch` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2851](https://github.com/typeddjango/django-stubs/pull/2851) - Also typecheck `aget` calls by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2856](https://github.com/typeddjango/django-stubs/pull/2856) - Validation of the `fields` argument to `bulk_update` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2808](https://github.com/typeddjango/django-stubs/pull/2808) ##### Housekeeping & CI - Add `mypy_primer` workflow by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2819](https://github.com/typeddjango/django-stubs/pull/2819) - Remove magically added `django.contrib.contenttypes` installed app in tests by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2853](https://github.com/typeddjango/django-stubs/pull/2853) - Use consistent indentation in `pyproject.toml` by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2847](https://github.com/typeddjango/django-stubs/pull/2847) - Version 5.2.6 release by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2859](https://github.com/typeddjango/django-stubs/pull/2859) ##### Ruff - Bump `ruff` to `0.13.0` by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2828](https://github.com/typeddjango/django-stubs/pull/2828) - Add some RET plugin ruff rules by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2852](https://github.com/typeddjango/django-stubs/pull/2852) - Enable more ruff rules by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2855](https://github.com/typeddjango/django-stubs/pull/2855) - Fix merge conflict + re-run pre-commit on all files by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2854](https://github.com/typeddjango/django-stubs/pull/2854) ##### `uv` package manager - Update release documentation, workflow and build-and-check job to `uv` by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2846](https://github.com/typeddjango/django-stubs/pull/2846) - Switch to `uv_build` build system & cleanup by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2848](https://github.com/typeddjango/django-stubs/pull/2848) - Use same `uv` workspace for `django-stubs-ext` also by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2857](https://github.com/typeddjango/django-stubs/pull/2857) - Test updated release workflow - Version 5.2.6a1 release by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2858](https://github.com/typeddjango/django-stubs/pull/2858) #### New Contributors - [@&#8203;sk-](https://github.com/sk-) made their first contribution in [#&#8203;2838](https://github.com/typeddjango/django-stubs/pull/2838) - [@&#8203;inducer](https://github.com/inducer) made their first contribution in [#&#8203;2849](https://github.com/typeddjango/django-stubs/pull/2849) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.5...5.2.6> ### [`v5.2.5`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.5) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.4...5.2.5) #### What's Changed - Fix regression that some places do not accept `_StrPromise` returned by `reverse_lazy` by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2814](https://github.com/typeddjango/django-stubs/pull/2814) - Fix regression of `.order_by` to accept any `Combinable` by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2816](https://github.com/typeddjango/django-stubs/pull/2816) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.4...5.2.5> ### [`v5.2.4`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.4) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.3...5.2.4) #### What's Changed - Fix `TestClient.get` regression by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2812](https://github.com/typeddjango/django-stubs/pull/2812) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.3...5.2.4> ### [`v5.2.3`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.3) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.2...5.2.3) #### What's Changed - Refine `Model._meta.get_field("field_name")` type inference by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2748](https://github.com/typeddjango/django-stubs/pull/2748) - Adds check for too many positional arguments in `__init__` calls by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2749](https://github.com/typeddjango/django-stubs/pull/2749) - Improve `settings.TEMPLATE` types by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2741](https://github.com/typeddjango/django-stubs/pull/2741) - Change partition input to any iterable by [@&#8203;bewing](https://github.com/bewing) in [#&#8203;2752](https://github.com/typeddjango/django-stubs/pull/2752) - `content_type_extra` contains `bytes`, not `str` by [@&#8203;alexmv](https://github.com/alexmv) in [#&#8203;2754](https://github.com/typeddjango/django-stubs/pull/2754) - Allow passing None to migrations.AlterOrderWithRespectTo by [@&#8203;niklasmohrin](https://github.com/niklasmohrin) in [#&#8203;2759](https://github.com/typeddjango/django-stubs/pull/2759) - Annotate return type of `reverse_lazy()` by [@&#8203;pgcd](https://github.com/pgcd) in [#&#8203;2766](https://github.com/typeddjango/django-stubs/pull/2766) - Change `FormMixin.success_url` to `_StrOrPromise` by [@&#8203;pgcd](https://github.com/pgcd) in [#&#8203;2769](https://github.com/typeddjango/django-stubs/pull/2769) - More lazy urls by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2770](https://github.com/typeddjango/django-stubs/pull/2770) - Allow all error types to `BaseForm.add_error()` in documentation by [@&#8203;CarrotManMatt](https://github.com/CarrotManMatt) in [#&#8203;2774](https://github.com/typeddjango/django-stubs/pull/2774) - Remove `OrderedDict` usage, this is the default since py 3.6 by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2780](https://github.com/typeddjango/django-stubs/pull/2780) - Simpler `get_current_module` util by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2781](https://github.com/typeddjango/django-stubs/pull/2781) - Initial support for `to_attr` inferrence in `Prefetch` calls by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2779](https://github.com/typeddjango/django-stubs/pull/2779) - Reuse `get_class_init_argument_by_name` in `resolve_many_to_many_arguments` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2782](https://github.com/typeddjango/django-stubs/pull/2782) - Simplify parsing of bool call arguments by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2783](https://github.com/typeddjango/django-stubs/pull/2783) - Improve `Model` inference from custom `QuerySet`/`Manager` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2784](https://github.com/typeddjango/django-stubs/pull/2784) - Declare `Prefetch` as generic and do specialization in the plugin by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2786](https://github.com/typeddjango/django-stubs/pull/2786) - Update `Meta.permissions` type by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2787](https://github.com/typeddjango/django-stubs/pull/2787) - Support star arg in `prefetch_related` calls by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2789](https://github.com/typeddjango/django-stubs/pull/2789) - Auto inherit from `TypedModelMeta` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2788](https://github.com/typeddjango/django-stubs/pull/2788) - Improve `.select_related` stubs by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2792](https://github.com/typeddjango/django-stubs/pull/2792) - Handle `.prefetch_related(..., to_attr="foo")` conflict with `.annotate(foo=...)` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2791](https://github.com/typeddjango/django-stubs/pull/2791) - Detect invalid `to_attr` target (alredy defined fields) by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2794](https://github.com/typeddjango/django-stubs/pull/2794) - Improve type for `order_by` / `defer` / `only` / `distinct` / `order_by` / `explain` / `dates` / `datetimes` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2795](https://github.com/typeddjango/django-stubs/pull/2795) - Improve `prefetch_related` types with an overload by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2793](https://github.com/typeddjango/django-stubs/pull/2793) - Detect more incompatible `to_attr` targets by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2797](https://github.com/typeddjango/django-stubs/pull/2797) - Update django to 5.2.6 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2805](https://github.com/typeddjango/django-stubs/pull/2805) - Add lookup validation in prefetch related by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2804](https://github.com/typeddjango/django-stubs/pull/2804) - Update mypy configuration by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2799](https://github.com/typeddjango/django-stubs/pull/2799) - Validate `select_related` lookups by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2806](https://github.com/typeddjango/django-stubs/pull/2806) - Bump mypy to 1.18.1 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2810](https://github.com/typeddjango/django-stubs/pull/2810) #### New Contributors - [@&#8203;bewing](https://github.com/bewing) made their first contribution in [#&#8203;2752](https://github.com/typeddjango/django-stubs/pull/2752) - [@&#8203;niklasmohrin](https://github.com/niklasmohrin) made their first contribution in [#&#8203;2759](https://github.com/typeddjango/django-stubs/pull/2759) - [@&#8203;pgcd](https://github.com/pgcd) made their first contribution in [#&#8203;2766](https://github.com/typeddjango/django-stubs/pull/2766) - [@&#8203;CarrotManMatt](https://github.com/CarrotManMatt) made their first contribution in [#&#8203;2774](https://github.com/typeddjango/django-stubs/pull/2774) - [@&#8203;CodingWithSaksham](https://github.com/CodingWithSaksham) made their first contribution in [#&#8203;2802](https://github.com/typeddjango/django-stubs/pull/2802) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.2...5.2.3> ### [`v5.2.2`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.2) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.1...5.2.2) #### What's Changed - Fix `reveal_type` to return its argument by [@&#8203;andersk](https://github.com/andersk) in [#&#8203;2716](https://github.com/typeddjango/django-stubs/pull/2716) - fix stubs of HttpRequest read / readine by [@&#8203;asottile](https://github.com/asottile) in [#&#8203;2714](https://github.com/typeddjango/django-stubs/pull/2714) - restore iterability of ResolverMatch by [@&#8203;asottile](https://github.com/asottile) in [#&#8203;2719](https://github.com/typeddjango/django-stubs/pull/2719) - Add missing instance variable declarations for `RawQuerySet` by [@&#8203;youtux](https://github.com/youtux) in [#&#8203;2718](https://github.com/typeddjango/django-stubs/pull/2718) - Add `join` to `JSONObject` by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2721](https://github.com/typeddjango/django-stubs/pull/2721) - add stubs for `QuerySet._raw_delete` by [@&#8203;asottile](https://github.com/asottile) in [#&#8203;2733](https://github.com/typeddjango/django-stubs/pull/2733) - Fix aliasing of choices in a class in choices plugin by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2734](https://github.com/typeddjango/django-stubs/pull/2734) - Change `resolve_callables` argument type to `Mapping` by [@&#8203;rodmk](https://github.com/rodmk) in [#&#8203;2735](https://github.com/typeddjango/django-stubs/pull/2735) - Update django to 5.2.4 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2736](https://github.com/typeddjango/django-stubs/pull/2736) - Fix test `HttpResponse.context_data` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2737](https://github.com/typeddjango/django-stubs/pull/2737) - Don't try to patch automatically symbols in `django.contrib.auth.forms` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2738](https://github.com/typeddjango/django-stubs/pull/2738) - Improve `.values()` types when expressions are used by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2739](https://github.com/typeddjango/django-stubs/pull/2739) - Update mypy to 1.17.0 by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2744](https://github.com/typeddjango/django-stubs/pull/2744) - Minor Plugin improvements by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2745](https://github.com/typeddjango/django-stubs/pull/2745) - `BasePasswordHasher.safe_summary` commonly uses `StrOrPromise` by [@&#8203;jdelic](https://github.com/jdelic) in [#&#8203;2742](https://github.com/typeddjango/django-stubs/pull/2742) - Fix `FormMixin` plugin by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2746](https://github.com/typeddjango/django-stubs/pull/2746) #### New Contributors - [@&#8203;rodmk](https://github.com/rodmk) made their first contribution in [#&#8203;2735](https://github.com/typeddjango/django-stubs/pull/2735) - [@&#8203;jdelic](https://github.com/jdelic) made their first contribution in [#&#8203;2742](https://github.com/typeddjango/django-stubs/pull/2742) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.1...5.2.2> ### [`v5.2.1`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.1) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.2.0...5.2.1) #### What's Changed - Fix some `<type> is not present at runtime` errors by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2635](https://github.com/typeddjango/django-stubs/pull/2635) - Fix missing at runtime errors (second batch) by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2636](https://github.com/typeddjango/django-stubs/pull/2636) - Move method defined on `BaseManager` to `Manager` to follow runtime behavior by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2637](https://github.com/typeddjango/django-stubs/pull/2637) - Fix missing at runtime errors (batch 3) by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2639](https://github.com/typeddjango/django-stubs/pull/2639) - Add stubs for `django.template.autoreload` by [@&#8203;rafailmdzdv](https://github.com/rafailmdzdv) in [#&#8203;2638](https://github.com/typeddjango/django-stubs/pull/2638) - Allow permission methods to take any model instance as obj by [@&#8203;federicobond](https://github.com/federicobond) in [#&#8203;2640](https://github.com/typeddjango/django-stubs/pull/2640) - correct bound for `_UserType` by [@&#8203;asottile](https://github.com/asottile) in [#&#8203;2645](https://github.com/typeddjango/django-stubs/pull/2645) - fix referencing `.value` of a Choices variable by [@&#8203;asottile](https://github.com/asottile) in [#&#8203;2644](https://github.com/typeddjango/django-stubs/pull/2644) - Fixes to choices support in plugin by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2646](https://github.com/typeddjango/django-stubs/pull/2646) - Use github permalink to blob view, not blame view by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2647](https://github.com/typeddjango/django-stubs/pull/2647) - add `null` keyword argument to `ManyToManyField` init by [@&#8203;lev-blit](https://github.com/lev-blit) in [#&#8203;2648](https://github.com/typeddjango/django-stubs/pull/2648) - Run stubtest on 2 latest python versions by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2651](https://github.com/typeddjango/django-stubs/pull/2651) - Stronger type for `settings.AUTH_PASSWORD_VALIDATORS` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2652](https://github.com/typeddjango/django-stubs/pull/2652) - Fix missing at runtime 3 by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2653](https://github.com/typeddjango/django-stubs/pull/2653) - Enable a few more ruff rules by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2655](https://github.com/typeddjango/django-stubs/pull/2655) - Update django gis backend by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2657](https://github.com/typeddjango/django-stubs/pull/2657) - Fix `django.http` errors by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2654](https://github.com/typeddjango/django-stubs/pull/2654) - Add `mysqlclient` deps to reveal mysql module stubtest errors by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2656](https://github.com/typeddjango/django-stubs/pull/2656) - Update `django.core.handlers` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2660](https://github.com/typeddjango/django-stubs/pull/2660) - Fix a few errors related to the metaclass `MediaDefiningClass` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2662](https://github.com/typeddjango/django-stubs/pull/2662) - Update django to 5.2.1 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2664](https://github.com/typeddjango/django-stubs/pull/2664) - Add a test for missing generics in stubs by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2659](https://github.com/typeddjango/django-stubs/pull/2659) - Contribute to class by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2666](https://github.com/typeddjango/django-stubs/pull/2666) - Restore support for mypy v1.13 by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2669](https://github.com/typeddjango/django-stubs/pull/2669) - Fix a crash on mypy master branch by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2670](https://github.com/typeddjango/django-stubs/pull/2670) - Update \_AsSqlType to allow tuple\[str, tuple] by [@&#8203;jacobtylerwalls](https://github.com/jacobtylerwalls) in [#&#8203;2673](https://github.com/typeddjango/django-stubs/pull/2673) - fix typing for get\_auto\_imports, get\_namespace, and run\_formatters by [@&#8203;BlaackWizard](https://github.com/BlaackWizard) in [#&#8203;2674](https://github.com/typeddjango/django-stubs/pull/2674) - fix: django.contrib.staticfiles for 5.2 by [@&#8203;skv0zsneg](https://github.com/skv0zsneg) in [#&#8203;2684](https://github.com/typeddjango/django-stubs/pull/2684) - Fix postgres OrderableAggMixin & BTreeIndex by [@&#8203;skv0zsneg](https://github.com/skv0zsneg) in [#&#8203;2686](https://github.com/typeddjango/django-stubs/pull/2686) - Switch to pyproject.toml + PEP621 by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2688](https://github.com/typeddjango/django-stubs/pull/2688) - Fix some django52 by [@&#8203;skv0zsneg](https://github.com/skv0zsneg) in [#&#8203;2691](https://github.com/typeddjango/django-stubs/pull/2691) - Use `uv` to manage dev dependencies by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2698](https://github.com/typeddjango/django-stubs/pull/2698) - Add tests for ClassVar-annotated Migration fields by [@&#8203;zyv](https://github.com/zyv) in [#&#8203;2702](https://github.com/typeddjango/django-stubs/pull/2702) - Add support for mypy v1.16 by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2703](https://github.com/typeddjango/django-stubs/pull/2703) - Weaken response argument types in django.utils.cache by [@&#8203;cjwatson](https://github.com/cjwatson) in [#&#8203;2704](https://github.com/typeddjango/django-stubs/pull/2704) - Add stub for `django.db.models.expressions.Expression.identity` by [@&#8203;cjwatson](https://github.com/cjwatson) in [#&#8203;2685](https://github.com/typeddjango/django-stubs/pull/2685) - change `assertFormError` form arg type to BaseForm by [@&#8203;marxide](https://github.com/marxide) in [#&#8203;2705](https://github.com/typeddjango/django-stubs/pull/2705) - Updated the "LogEntryManager" class' "log\_action" and "log\_actions" methods by [@&#8203;ataylor32](https://github.com/ataylor32) in [#&#8203;2708](https://github.com/typeddjango/django-stubs/pull/2708) - Fix signature of `LogEntryManager.log_actions` by [@&#8203;youtux](https://github.com/youtux) in [#&#8203;2710](https://github.com/typeddjango/django-stubs/pull/2710) - Add "django.contrib.auth.management.commands.createsuperuser" annotations by [@&#8203;brianhelba](https://github.com/brianhelba) in [#&#8203;2701](https://github.com/typeddjango/django-stubs/pull/2701) #### New Contributors - [@&#8203;rafailmdzdv](https://github.com/rafailmdzdv) made their first contribution in [#&#8203;2638](https://github.com/typeddjango/django-stubs/pull/2638) - [@&#8203;lev-blit](https://github.com/lev-blit) made their first contribution in [#&#8203;2648](https://github.com/typeddjango/django-stubs/pull/2648) - [@&#8203;BlaackWizard](https://github.com/BlaackWizard) made their first contribution in [#&#8203;2674](https://github.com/typeddjango/django-stubs/pull/2674) - [@&#8203;skv0zsneg](https://github.com/skv0zsneg) made their first contribution in [#&#8203;2684](https://github.com/typeddjango/django-stubs/pull/2684) - [@&#8203;cjwatson](https://github.com/cjwatson) made their first contribution in [#&#8203;2704](https://github.com/typeddjango/django-stubs/pull/2704) - [@&#8203;marxide](https://github.com/marxide) made their first contribution in [#&#8203;2705](https://github.com/typeddjango/django-stubs/pull/2705) - [@&#8203;ataylor32](https://github.com/ataylor32) made their first contribution in [#&#8203;2708](https://github.com/typeddjango/django-stubs/pull/2708) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.2.0...5.2.1> ### [`v5.2.0`](https://github.com/typeddjango/django-stubs/releases/tag/5.2.0) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.1.3...5.2.0) #### Important changes - We now support Django\@&#8203;5.2 LTS release! - Partial Django support is moved to 5.0 from 4.2 - We now also run all checks in this repo under `mypy --strict` mode - Minimal `mypy` version is updated to `1.13` #### What's Changed - fix `format_lazy` typing by [@&#8203;ashm-dev](https://github.com/ashm-dev) in [#&#8203;2504](https://github.com/typeddjango/django-stubs/pull/2504) - Update models's fields' `_Choices` type by [@&#8203;stianjensen](https://github.com/stianjensen) in [#&#8203;2476](https://github.com/typeddjango/django-stubs/pull/2476) - fix: Add `context_data` attribute to \_MonkeyPatchedW/ASGIResponse. by [@&#8203;PacificGilly](https://github.com/PacificGilly) in [#&#8203;2509](https://github.com/typeddjango/django-stubs/pull/2509) - Fix id and pk of AnonymousUser by [@&#8203;stickperson](https://github.com/stickperson) in [#&#8203;2515](https://github.com/typeddjango/django-stubs/pull/2515) - Add docs about "`type[Model]` does not have `objects` attribute" by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2519](https://github.com/typeddjango/django-stubs/pull/2519) - Update `db.migrations.operations` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;2349](https://github.com/typeddjango/django-stubs/pull/2349) - Add `select_format()` methods by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2525](https://github.com/typeddjango/django-stubs/pull/2525) - Tidy `django.conf.urls` by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2528](https://github.com/typeddjango/django-stubs/pull/2528) - Fix `Func.function` by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2529](https://github.com/typeddjango/django-stubs/pull/2529) - Add `ClassVar` annotations on mutable `ModelAdmin` types for `ruff` by [@&#8203;zyv](https://github.com/zyv) in [#&#8203;2524](https://github.com/typeddjango/django-stubs/pull/2524) - Add `ClassVar` annotations on `Migration` class attributes by [@&#8203;zyv](https://github.com/zyv) in [#&#8203;2530](https://github.com/typeddjango/django-stubs/pull/2530) - Remove insecure password hashers by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2537](https://github.com/typeddjango/django-stubs/pull/2537) - Update for `Model.[a]save()` signature change by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2535](https://github.com/typeddjango/django-stubs/pull/2535) - Update TestCase classes for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2540](https://github.com/typeddjango/django-stubs/pull/2540) - Improve admin decorators by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2538](https://github.com/typeddjango/django-stubs/pull/2538) - Update for template system checks change by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2536](https://github.com/typeddjango/django-stubs/pull/2536) - Remove ForeignObjectRel.is\_hidden() by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2539](https://github.com/typeddjango/django-stubs/pull/2539) - Correct Field.slice\_expression() 'length' argument name. by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2548](https://github.com/typeddjango/django-stubs/pull/2548) - Update django.urls for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2546](https://github.com/typeddjango/django-stubs/pull/2546) - Update django.db.models.options.Options for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2545](https://github.com/typeddjango/django-stubs/pull/2545) - Add admin is\_collapsible() methods by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2541](https://github.com/typeddjango/django-stubs/pull/2541) - Update django.template for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2543](https://github.com/typeddjango/django-stubs/pull/2543) - Add new system checks from Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2542](https://github.com/typeddjango/django-stubs/pull/2542) - Add full signatures to CheckConstraint.**init** overloads by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2544](https://github.com/typeddjango/django-stubs/pull/2544) - Make Model.\[a]save() keyword-only by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2550](https://github.com/typeddjango/django-stubs/pull/2550) - Add query\_params argument to test tools from Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2547](https://github.com/typeddjango/django-stubs/pull/2547) - fix [#&#8203;2552](https://github.com/typeddjango/django-stubs/issues/2552) by add ModelIterable to \_need\_generic by [@&#8203;lucemia](https://github.com/lucemia) in [#&#8203;2553](https://github.com/typeddjango/django-stubs/pull/2553) - Add window frame exclusion from Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2554](https://github.com/typeddjango/django-stubs/pull/2554) - Improve process\_view() methods by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2556](https://github.com/typeddjango/django-stubs/pull/2556) - Update core.files.storages for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2558](https://github.com/typeddjango/django-stubs/pull/2558) - Update contrib.auth for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2555](https://github.com/typeddjango/django-stubs/pull/2555) - Complete JSONObject by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2560](https://github.com/typeddjango/django-stubs/pull/2560) - Fix FieldCacheMixin.cache\_name by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2562](https://github.com/typeddjango/django-stubs/pull/2562) - Use AbstractContextManager instead of `@contextmanager` by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2561](https://github.com/typeddjango/django-stubs/pull/2561) - Add ModelForm.declared\_fields by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2557](https://github.com/typeddjango/django-stubs/pull/2557) - Update test.selenium for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2559](https://github.com/typeddjango/django-stubs/pull/2559) - Update database expressions for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2563](https://github.com/typeddjango/django-stubs/pull/2563) - fixed typing in contrib.auth.decorators by [@&#8203;Rusich90](https://github.com/Rusich90) in [#&#8203;2564](https://github.com/typeddjango/django-stubs/pull/2564) - Update `_Choices` type for forms by [@&#8203;mrgalopes](https://github.com/mrgalopes) in [#&#8203;2565](https://github.com/typeddjango/django-stubs/pull/2565) - Update some database backend attributes for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2567](https://github.com/typeddjango/django-stubs/pull/2567) - Update PostgreSQL backend `is_postgresql_*` properties for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2566](https://github.com/typeddjango/django-stubs/pull/2566) - Remove unused code from the plugin by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2570](https://github.com/typeddjango/django-stubs/pull/2570) - Add `db_table_comment` to model meta by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2571](https://github.com/typeddjango/django-stubs/pull/2571) - Fix `BaseModelAdmin.get_inlines()` return type by [@&#8203;MaestroXXXVIII](https://github.com/MaestroXXXVIII) in [#&#8203;2576](https://github.com/typeddjango/django-stubs/pull/2576) - Fix a few typos by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2579](https://github.com/typeddjango/django-stubs/pull/2579) - Document custom field typing by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2578](https://github.com/typeddjango/django-stubs/pull/2578) - Improve stubs for `flatten` and `flatten_fieldsets` by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2572](https://github.com/typeddjango/django-stubs/pull/2572) - Improve typing of choices by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2582](https://github.com/typeddjango/django-stubs/pull/2582) - Run tests in parallel by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2580](https://github.com/typeddjango/django-stubs/pull/2580) - Make GeneratedField parameter db\_persist required by [@&#8203;JasonLovesDoggo](https://github.com/JasonLovesDoggo) in [#&#8203;2568](https://github.com/typeddjango/django-stubs/pull/2568) - Re-add explicit test cache disabling by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2589](https://github.com/typeddjango/django-stubs/pull/2589) - Ignore `__slotnames__` by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2584](https://github.com/typeddjango/django-stubs/pull/2584) - Update a bunch of stuff for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2585](https://github.com/typeddjango/django-stubs/pull/2585) - Add get\_refs() to BaseExpression and WhereNode by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2586](https://github.com/typeddjango/django-stubs/pull/2586) - Update Django 4.2 LTS version to 4.2.20 by [@&#8203;intgr](https://github.com/intgr) in [#&#8203;2592](https://github.com/typeddjango/django-stubs/pull/2592) - Allow tuples for some `TypedModelMeta` fields by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2594](https://github.com/typeddjango/django-stubs/pull/2594) - Update `django.contrib.gis.geoip2` stubs by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2593](https://github.com/typeddjango/django-stubs/pull/2593) - Update django to 5.2 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2596](https://github.com/typeddjango/django-stubs/pull/2596) - Fix django.urls.base.reverse after 5.2 by [@&#8203;simwr872](https://github.com/simwr872) in [#&#8203;2595](https://github.com/typeddjango/django-stubs/pull/2595) - Update `django.core.validators` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2598](https://github.com/typeddjango/django-stubs/pull/2598) - Update `django.test.client` and `django.utils` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2599](https://github.com/typeddjango/django-stubs/pull/2599) - Update `django.contrib.auth.backends` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2600](https://github.com/typeddjango/django-stubs/pull/2600) - Update `django.contrib.auth.models` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2601](https://github.com/typeddjango/django-stubs/pull/2601) - Allow `MutableMapping` for `Form.Initial` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in [#&#8203;2604](https://github.com/typeddjango/django-stubs/pull/2604) - Update `django.contrib.admin` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2607](https://github.com/typeddjango/django-stubs/pull/2607) - Update `django.db.models.sql` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2606](https://github.com/typeddjango/django-stubs/pull/2606) - Update `django.forms.widgets` for Django 5.2 by [@&#8203;federicobond](https://github.com/federicobond) in [#&#8203;2608](https://github.com/typeddjango/django-stubs/pull/2608) - create and re-use `TypeAlias`es and `TypeVar`s for "user" and "any user" by [@&#8203;terencehonles](https://github.com/terencehonles) in [#&#8203;2384](https://github.com/typeddjango/django-stubs/pull/2384) - Update `django.contrib` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2611](https://github.com/typeddjango/django-stubs/pull/2611) - Add stub for `get_select2_language` from `django.contrib.admin.widgets` by [@&#8203;michalpokusa](https://github.com/michalpokusa) in [#&#8203;2612](https://github.com/typeddjango/django-stubs/pull/2612) - Update `django.core.management.commands` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2613](https://github.com/typeddjango/django-stubs/pull/2613) - Restrict setuptools to `<79.0.0` for `SETUPTOOLS_ENABLE_FEATURES=legacy-editable` to work by [@&#8203;michalpokusa](https://github.com/michalpokusa) in [#&#8203;2617](https://github.com/typeddjango/django-stubs/pull/2617) - Add EmailMultiAlternatives.body\_contains() by [@&#8203;cuu508](https://github.com/cuu508) in [#&#8203;2618](https://github.com/typeddjango/django-stubs/pull/2618) - Add HttpResponse.text by [@&#8203;cuu508](https://github.com/cuu508) in [#&#8203;2622](https://github.com/typeddjango/django-stubs/pull/2622) - Allow tuples for some `Options` fields by [@&#8203;ngnpope](https://github.com/ngnpope) in [#&#8203;2627](https://github.com/typeddjango/django-stubs/pull/2627) - Add `__all__` by [@&#8203;donBarbos](https://github.com/donBarbos) in [#&#8203;2624](https://github.com/typeddjango/django-stubs/pull/2624) - Fix some django 5.2 new missing parameters by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2629](https://github.com/typeddjango/django-stubs/pull/2629) - \[5.2] Improve `django.http.request.MediaType` by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2631](https://github.com/typeddjango/django-stubs/pull/2631) - \[5.2] Fix new errors in `django.http` module by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2632](https://github.com/typeddjango/django-stubs/pull/2632) - \[5.2] Fix `django.template.library` by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2633](https://github.com/typeddjango/django-stubs/pull/2633) - Update `django.core.serializers` for Django 5.2 by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in [#&#8203;2614](https://github.com/typeddjango/django-stubs/pull/2614) - Update contrib.gis for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2587](https://github.com/typeddjango/django-stubs/pull/2587) - Update some field attributes for Django 5.1 by [@&#8203;adamchainz](https://github.com/adamchainz) in [#&#8203;2583](https://github.com/typeddjango/django-stubs/pull/2583) #### New Contributors - [@&#8203;stianjensen](https://github.com/stianjensen) made their first contribution in [#&#8203;2476](https://github.com/typeddjango/django-stubs/pull/2476) - [@&#8203;PacificGilly](https://github.com/PacificGilly) made their first contribution in [#&#8203;2509](https://github.com/typeddjango/django-stubs/pull/2509) - [@&#8203;stickperson](https://github.com/stickperson) made their first contribution in [#&#8203;2515](https://github.com/typeddjango/django-stubs/pull/2515) - [@&#8203;zyv](https://github.com/zyv) made their first contribution in [#&#8203;2524](https://github.com/typeddjango/django-stubs/pull/2524) - [@&#8203;lucemia](https://github.com/lucemia) made their first contribution in [#&#8203;2553](https://github.com/typeddjango/django-stubs/pull/2553) - [@&#8203;Rusich90](https://github.com/Rusich90) made their first contribution in [#&#8203;2564](https://github.com/typeddjango/django-stubs/pull/2564) - [@&#8203;mrgalopes](https://github.com/mrgalopes) made their first contribution in [#&#8203;2565](https://github.com/typeddjango/django-stubs/pull/2565) - [@&#8203;MaestroXXXVIII](https://github.com/MaestroXXXVIII) made their first contribution in [#&#8203;2576](https://github.com/typeddjango/django-stubs/pull/2576) - [@&#8203;JasonLovesDoggo](https://github.com/JasonLovesDoggo) made their first contribution in [#&#8203;2568](https://github.com/typeddjango/django-stubs/pull/2568) - [@&#8203;simwr872](https://github.com/simwr872) made their first contribution in [#&#8203;2595](https://github.com/typeddjango/django-stubs/pull/2595) - [@&#8203;michalpokusa](https://github.com/michalpokusa) made their first contribution in [#&#8203;2612](https://github.com/typeddjango/django-stubs/pull/2612) - [@&#8203;donBarbos](https://github.com/donBarbos) made their first contribution in [#&#8203;2624](https://github.com/typeddjango/django-stubs/pull/2624) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.1.3...5.2.0> ### [`v5.1.3`](https://github.com/typeddjango/django-stubs/releases/tag/5.1.3) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.1.2...5.1.3) #### What's Changed - Support mypy\@&#8203;1.15 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2502](https://github.com/typeddjango/django-stubs/pull/2502) - Support Django\@&#8203;5.1.5 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2482](https://github.com/typeddjango/django-stubs/pull/2482) - Support Django\@&#8203;5.1.6 by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2503](https://github.com/typeddjango/django-stubs/pull/2503) - Fix `ContentType` model fields to be infered as `Any`, refs [#&#8203;2446](https://github.com/typeddjango/django-stubs/issues/2446) by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2483](https://github.com/typeddjango/django-stubs/pull/2483) - Fix `@deprecated` based on the review by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2485](https://github.com/typeddjango/django-stubs/pull/2485) - Fix error with `null=True` and `Any` type param for `Field` types by [@&#8203;sobolevn](https://github.com/sobolevn) in [#&#8203;2492](https://github.com/typeddjango/django-stubs/pull/2492) - Fix types for `TestCase.assertJSON{Not,}Equal` by [@&#8203;nickstenning](https://github.com/nickstenning) in [#&#8203;2497](https://github.com/typeddjango/django-stubs/pull/2497) - DomainNameValidator types by [@&#8203;HansAarneLiblik](https://github.com/HansAarneLiblik) in [#&#8203;2498](https://github.com/typeddjango/django-stubs/pull/2498) #### New Contributors - [@&#8203;nickstenning](https://github.com/nickstenning) made their first contribution in [#&#8203;2497](https://github.com/typeddjango/django-stubs/pull/2497) **Full Changelog**: <https://github.com/typeddjango/django-stubs/compare/5.1.2...5.1.3> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40LjMiLCJ1cGRhdGVkSW5WZXIiOiI0My40LjMiLCJ0YXJnZXRCcmFuY2giOiJmcm9udGVuZC1uZXciLCJsYWJlbHMiOltdfQ==-->
Update dependency django-stubs to v5.2.9
All checks were successful
Backend OCI Build / build (push) Successful in 34s
Backend OCI Build / build (pull_request) Successful in 34s
96565dfc2a
All checks were successful
Backend OCI Build / build (push) Successful in 34s
Backend OCI Build / build (pull_request) Successful in 34s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/django-stubs-5.x:renovate/django-stubs-5.x
git switch renovate/django-stubs-5.x

Merge

Merge the changes and update on Forgejo.
git switch frontend-new
git merge --no-ff renovate/django-stubs-5.x
git switch renovate/django-stubs-5.x
git rebase frontend-new
git switch frontend-new
git merge --ff-only renovate/django-stubs-5.x
git switch renovate/django-stubs-5.x
git rebase frontend-new
git switch frontend-new
git merge --no-ff renovate/django-stubs-5.x
git switch frontend-new
git merge --squash renovate/django-stubs-5.x
git switch frontend-new
git merge --ff-only renovate/django-stubs-5.x
git switch frontend-new
git merge renovate/django-stubs-5.x
git push origin frontend-new
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aroy/Gallery-Archivist!29
No description provided.