Update dependency django-stubs to v5 - autoclosed #148

Closed
_renovate wants to merge 0 commits from renovate/django-stubs-5.x into master
_renovate commented 2025-04-09 17:10:40 +02:00 (Migrated from edugit.org)

This MR contains the following updates:

Package Type Update Change
django-stubs (changelog) dev major ^4.2 -> ^5.0.0

Release Notes

typeddjango/django-stubs (django-stubs)

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

v5.1.2

Compare Source

What's Changed

New Contributors

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

v5.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.0...5.1.1

v5.1.0

Compare Source

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.4...5.1.0

v5.0.4

Compare Source

What's Changed

This is a re-release of django-stubs 5.0.3 with a minor fix:

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.3...5.0.4

Release notes for version 5.0.3

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3

v5.0.3

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3

v5.0.2

Compare Source

What's Changed

This is a re-release of django-stubs 5.0.1 with a minor fix:

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.1...5.0.2

Release notes for version 5.0.1

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1

v5.0.1

Compare Source

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1

v5.0.0

Compare Source

Announcements

  • QuerySet class no longer derives from Collection. If you run into errors like incompatible type "_QuerySet[User, User]"; expected "Collection[User]", please read this announcement.

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.7...5.0.0


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 MR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This MR has been generated by Renovate Bot.

This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [django-stubs](https://github.com/typeddjango/django-stubs) ([changelog](https://github.com/typeddjango/django-stubs/releases)) | dev | major | `^4.2` -> `^5.0.0` | --- ### Release Notes <details> <summary>typeddjango/django-stubs (django-stubs)</summary> ### [`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@1.15 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2502 - Support Django@5.1.5 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2482 - Support Django@5.1.6 by [@&#8203;sobolevn](https://github.com/sobolevn) in 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 https://github.com/typeddjango/django-stubs/pull/2483 - Fix `@deprecated` based on the review by [@&#8203;sobolevn](https://github.com/sobolevn) in 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 https://github.com/typeddjango/django-stubs/pull/2492 - Fix types for `TestCase.assertJSON{Not,}Equal` by [@&#8203;nickstenning](https://github.com/nickstenning) in https://github.com/typeddjango/django-stubs/pull/2497 - DomainNameValidator types by [@&#8203;HansAarneLiblik](https://github.com/HansAarneLiblik) in https://github.com/typeddjango/django-stubs/pull/2498 #### New Contributors - [@&#8203;nickstenning](https://github.com/nickstenning) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2497 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.1.2...5.1.3 ### [`v5.1.2`](https://github.com/typeddjango/django-stubs/releases/tag/5.1.2) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.1.1...5.1.2) #### What's Changed - Update enums to reflect typing spec changes by [@&#8203;hauntsaninja](https://github.com/hauntsaninja) in https://github.com/typeddjango/django-stubs/pull/2426 - Document compatibility considerations by [@&#8203;khink](https://github.com/khink) in https://github.com/typeddjango/django-stubs/pull/2430 - fix `.values_list` returns incorrect type for field with same name when selected from related model by [@&#8203;Niicck](https://github.com/Niicck) in https://github.com/typeddjango/django-stubs/pull/2431 - Bump django to 5.1.3 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2436 - Fix typing of related manager methods by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2439 - Fix signature of `ModelAdmin.construct_change_message` by [@&#8203;youtux](https://github.com/youtux) in https://github.com/typeddjango/django-stubs/pull/2444 - Update django to 5.1.4, drop black by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2455 - Extend \_AllLimitChoicesTo by [@&#8203;H4rryK4ne](https://github.com/H4rryK4ne) in https://github.com/typeddjango/django-stubs/pull/2456 - Marking default_error_messages as a ClassVar by [@&#8203;delfick](https://github.com/delfick) in https://github.com/typeddjango/django-stubs/pull/2457 - Add deprecated decorators for multiple classes and methods by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2458 - Update `contrib.admin.options.ModelAdmin` by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2422 - Update `contrib.gis.gdal.geometries` by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2460 - base.pyi: use base class HttpResponseBase by [@&#8203;dnet](https://github.com/dnet) in https://github.com/typeddjango/django-stubs/pull/2459 - Update `contrib.admin.models.LogEntryManager` by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2423 - Update mypy to 1.14 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2468 - Add py.typed file for pylance support by [@&#8203;ashwanthbalakrishnan5](https://github.com/ashwanthbalakrishnan5) in https://github.com/typeddjango/django-stubs/pull/2470 - Fix Signal.\_live_receivers typing by [@&#8203;mdalp](https://github.com/mdalp) in https://github.com/typeddjango/django-stubs/pull/2475 - Add type-checking to Manager.acreate by [@&#8203;vitosamson](https://github.com/vitosamson) in https://github.com/typeddjango/django-stubs/pull/2477 #### New Contributors - [@&#8203;hauntsaninja](https://github.com/hauntsaninja) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2426 - [@&#8203;khink](https://github.com/khink) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2430 - [@&#8203;Niicck](https://github.com/Niicck) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2431 - [@&#8203;youtux](https://github.com/youtux) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2444 - [@&#8203;H4rryK4ne](https://github.com/H4rryK4ne) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2456 - [@&#8203;dnet](https://github.com/dnet) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2459 - [@&#8203;ashwanthbalakrishnan5](https://github.com/ashwanthbalakrishnan5) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2470 - [@&#8203;mdalp](https://github.com/mdalp) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2475 - [@&#8203;vitosamson](https://github.com/vitosamson) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2477 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.1.1...5.1.2 ### [`v5.1.1`](https://github.com/typeddjango/django-stubs/releases/tag/5.1.1) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.1.0...5.1.1) #### What's Changed - Add django 5.1 to the test matrix and add its classifier by [@&#8203;foarsitter](https://github.com/foarsitter) in https://github.com/typeddjango/django-stubs/pull/2380 - fix function overload of Library.simple_tag by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2390 - Fix resolve_error_handler return type by [@&#8203;ljodal](https://github.com/ljodal) in https://github.com/typeddjango/django-stubs/pull/2392 - Make `BaseEngine.app_dirname` non-optional by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2394 - \[5.1] Add from_queryset param to `(a)refresh_from_db()` by [@&#8203;jacobtylerwalls](https://github.com/jacobtylerwalls) in https://github.com/typeddjango/django-stubs/pull/2402 - Make `from_string()` and `get_template()` return backend-specific template by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2400 - Update type of the `get_session_auth_fallback_hash` method to the correct type by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2407 - Fix TypedDictType crash with mypy 1.12.x by [@&#8203;federicobond](https://github.com/federicobond) in https://github.com/typeddjango/django-stubs/pull/2408 - Remove EOL Python 3.8 and add 3.13 to CI by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2397 - Treat `QuerySet.alias` like `QuerySet.annotate` by [@&#8203;andersk](https://github.com/andersk) in https://github.com/typeddjango/django-stubs/pull/2411 - Fixes [#&#8203;2413](https://github.com/typeddjango/django-stubs/issues/2413) -- update ModelAdmin.log_FOO method signatures by [@&#8203;sergei-maertens](https://github.com/sergei-maertens) in https://github.com/typeddjango/django-stubs/pull/2414 - Update `db.migrations.serializer` by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2421 - Update `django.conf.global_settings` by [@&#8203;JaeHyuckSa](https://github.com/JaeHyuckSa) in https://github.com/typeddjango/django-stubs/pull/2420 - Allow `None` on `view_on_site` by [@&#8203;nijel](https://github.com/nijel) in https://github.com/typeddjango/django-stubs/pull/2419 - Version 5.1.1 release by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2424 #### New Contributors - [@&#8203;foarsitter](https://github.com/foarsitter) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2380 - [@&#8203;sergei-maertens](https://github.com/sergei-maertens) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2414 - [@&#8203;nijel](https://github.com/nijel) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2419 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.1.0...5.1.1 ### [`v5.1.0`](https://github.com/typeddjango/django-stubs/releases/tag/5.1.0) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.0.4...5.1.0) #### Headline changes - Refactor support for `annotate` to utilise `mypy.types.Instance.extra_attrs` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2319 - Resolve configured `AUTH_USER_MODEL` with a `get_type_analyze_hook` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2335 #### What's Changed - Fix type hints for `SimpleTestCase` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2289 - Check correct model on m2m reverse values/values_list by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2288 - match Field TypeVar variance in models.fields.related by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2292 - try and use named arguments from caller for matching name by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2294 - Allow `fields` being an `Iterable` in `bulk_update` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2296 - Test usage of `from_queryset` manager as reverse manager by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2295 - A workaround for [#&#8203;2299](https://github.com/typeddjango/django-stubs/issues/2299) by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2300 - Run mypy with `--strict` on `assert_type` tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2301 - Improve `get_context_object_name` on `SingleObjectMixin` and `MultipleObjectMixin` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2298 - Update pyright to 1.1.374 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2305 - Remove `BaseManager.cache` attribute by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2309 - Loosen bound on `CurrentSiteManager` manager type var by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2308 - Update build status link for `django-stubs-ext` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2310 - Use `Any` for `ConnectionProxy` attributes by [@&#8203;RealOrangeOne](https://github.com/RealOrangeOne) in https://github.com/typeddjango/django-stubs/pull/2311 - Remove `FieldDoesNotExist` from where it's not present at runtime by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2313 - Declare `ManyToManyField.description` a `_StrOrPromise` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2312 - Don't populate a type arg for non generic managers by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2314 - Fixed bugs with RawQuerySet by [@&#8203;ashm-dev](https://github.com/ashm-dev) in https://github.com/typeddjango/django-stubs/pull/2316 - Add Typing for EmailField with Support for String Set and Get Types by [@&#8203;ashm-dev](https://github.com/ashm-dev) in https://github.com/typeddjango/django-stubs/pull/2317 - Do `models.Model` adjustments from `get_metaclass_hook` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2322 - Bump django from 5.0.7 to 5.0.8 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2325 - This MR adds some defaults to stubs with `stubdefaulter` by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2326 - Add a lot of runtime defaults to stubs with `stubdefaulter` by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2327 - Fix `tuple[A]` types to be `tuple[A, ...]` types by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2328 - Check annotated fields in `<QuerySet>.filter` call by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2332 - Refactor: Unify plugin check for model type info by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2286 - Enable `mypy.plugins.proper_plugin` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2333 - Use mypy's `make_optional_type` instead of shipping our own by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2334 - Add arbitrary named arguments to [@&#8203;receiver](https://github.com/receiver) decorator by [@&#8203;craigds](https://github.com/craigds) in https://github.com/typeddjango/django-stubs/pull/2342 - Bump django from 5.0.8 to 5.1 by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2347 - Don't modify return values of manager methods in place, modify a copy instead by [@&#8203;jkaikkosplk](https://github.com/jkaikkosplk) in https://github.com/typeddjango/django-stubs/pull/2345 - \[5.1] Add slicing notation to F expressions by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1897 - 5.1: Deprecate CheckConstraint.check by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/2331 - feat: Add missing stubs by [@&#8203;BradleyKirton](https://github.com/BradleyKirton) in https://github.com/typeddjango/django-stubs/pull/2348 - Update `utils` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2352 - Update `contrib.sessions.backends` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2351 - Update django to 5.1.1 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2360 - Allow None return form model Field.formfield() by [@&#8203;adamchainz](https://github.com/adamchainz) in https://github.com/typeddjango/django-stubs/pull/2363 - add cache_name for django 5.1 by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2365 - Update Django 4.2 LTS version to 4.2.16 by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2369 - Document the release process by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2371 - Allow lookups on `.annotate` fields by [@&#8203;sterliakov](https://github.com/sterliakov) in https://github.com/typeddjango/django-stubs/pull/2376 - Break what apparently is a cycle involving custom User model and `QuerySet.as_manager()` by [@&#8203;sterliakov](https://github.com/sterliakov) in https://github.com/typeddjango/django-stubs/pull/2377 - Version 5.1.0 release by [@&#8203;richardebeling](https://github.com/richardebeling) in https://github.com/typeddjango/django-stubs/pull/2374 #### New Contributors - [@&#8203;RealOrangeOne](https://github.com/RealOrangeOne) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2311 - [@&#8203;ashm-dev](https://github.com/ashm-dev) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2316 - [@&#8203;craigds](https://github.com/craigds) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2342 - [@&#8203;jkaikkosplk](https://github.com/jkaikkosplk) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2345 - [@&#8203;BradleyKirton](https://github.com/BradleyKirton) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2348 - [@&#8203;richardebeling](https://github.com/richardebeling) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2374 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.4...5.1.0 ### [`v5.0.4`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.4) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.0.3...5.0.4) #### What's Changed This is a re-release of django-stubs `5.0.3` with a minor fix: - Check correct model on other side of many to many reverse filtering by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2283 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.3...5.0.4 ### Release notes for version 5.0.3 #### What's Changed - Release workflow: publish `django-stubs-ext` before `django-stubs` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2188 - Migrate `apps/test_config.yml` 'assert_type' tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2190 - Add `ManyToManyField.m2m_field_name` and `Model._get_pk_val` methods by [@&#8203;YPCrumble](https://github.com/YPCrumble) in https://github.com/typeddjango/django-stubs/pull/2177 - `Lookup` should be a subtype of `Expression` by [@&#8203;mkurnikov](https://github.com/mkurnikov) in https://github.com/typeddjango/django-stubs/pull/2199 - Update `django.db.models.functions`: allow `Combinable` as parameter, add `Round` function by [@&#8203;noamkush](https://github.com/noamkush) in https://github.com/typeddjango/django-stubs/pull/2195 - Add missing `django.core.management.utils` functions by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2200 - Improve `django.middleware` stubs by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2202 - Improve `django.http` stubs by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2201 - Tests: Migrate `db/models/test_constraints.yml` to 'assert_type' tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2204 - Allow any function for admin's `display` and `action` decorators by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2210 - Remove invalid re-export `django.forms.ChoiceWidget` by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2207 - Model.\_meta.pk is non-None by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2218 - update / create defaults are read-only Mapping by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2216 - Add missing math.Random database function by [@&#8203;noamkush](https://github.com/noamkush) in https://github.com/typeddjango/django-stubs/pull/2222 - Make `ReverseManyToOneDescriptor` generic over a model by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2227 - Extract through table creation to separate method by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2229 - Do many related manager creation during semantic analysis by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2231 - Expand CheckRegistry.register as function ([#&#8203;2232](https://github.com/typeddjango/django-stubs/issues/2232)) by [@&#8203;jwhitlock](https://github.com/jwhitlock) in https://github.com/typeddjango/django-stubs/pull/2233 - don't copy magic or private methods in from_queryset managers by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2240 - Make plugin handle explicitly declared reverse descriptors for FKs by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2230 - Expect a `QuerySet` for multiple defaults in `MultipleObjectMixin` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2191 - fix handling of explicit `objects` annotation by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2241 - Add atomic_blocks to base DB wrapper by [@&#8203;palfrey](https://github.com/palfrey) in https://github.com/typeddjango/django-stubs/pull/2242 - walk mro for Field set type annotations by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2244 - Add `serialized_aliases` parameter to `setup_databases` function in `django.test.utils` by [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) in https://github.com/typeddjango/django-stubs/pull/2247 - use field annotations for values_list types by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2248 - Improve types of `ConnectionProxy` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2246 - Add `get_template_tag_modules` function signature to `django.template.backends.django` by [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) in https://github.com/typeddjango/django-stubs/pull/2250 - add PlaceholderNode when deferring manager class hook by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2228 - Update function signatures for `django.db.models.sql.Query` class by [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) in https://github.com/typeddjango/django-stubs/pull/2253 - Update `admin.sites._ViewType` bound to allow `StreamingHttpResponse` by [@&#8203;savanto](https://github.com/savanto) in https://github.com/typeddjango/django-stubs/pull/2256 - Add `Options._get_fields` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2254 - Support inheriting ManyToManyField from an abstract model by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2260 - Allow single generic param for Field in ForeignKey by [@&#8203;rafonseca](https://github.com/rafonseca) in https://github.com/typeddjango/django-stubs/pull/2261 - Refactor: Unify plugin check for model type info by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2263 - add `Path` type argument to tuple returned by `get_app_template_dirs` by [@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas) in https://github.com/typeddjango/django-stubs/pull/2266 - add missing type argument to `Paginator` by [@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas) in https://github.com/typeddjango/django-stubs/pull/2271 - Update mypy to 1.11.0 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2269 - Check calls to filtering manager methods involving `ManyToManyField` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2275 - Prepare for a release `5.0.3` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2274 - lookup manager type via mro by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2276 - Check model fields on filtering methods of queryset types by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2277 - fill QuerySet generics using the manager's model type by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2281 - convert as_manager hooks to base class hook by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2282 #### New Contributors - [@&#8203;YPCrumble](https://github.com/YPCrumble) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2177 - [@&#8203;jwhitlock](https://github.com/jwhitlock) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2233 - [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2247 - [@&#8203;savanto](https://github.com/savanto) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2256 - [@&#8203;rafonseca](https://github.com/rafonseca) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2261 - [@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2266 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3 ### [`v5.0.3`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.3) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3) #### What's Changed - Release workflow: publish `django-stubs-ext` before `django-stubs` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2188 - Migrate `apps/test_config.yml` 'assert_type' tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2190 - Add `ManyToManyField.m2m_field_name` and `Model._get_pk_val` methods by [@&#8203;YPCrumble](https://github.com/YPCrumble) in https://github.com/typeddjango/django-stubs/pull/2177 - `Lookup` should be a subtype of `Expression` by [@&#8203;mkurnikov](https://github.com/mkurnikov) in https://github.com/typeddjango/django-stubs/pull/2199 - Update `django.db.models.functions`: allow `Combinable` as parameter, add `Round` function by [@&#8203;noamkush](https://github.com/noamkush) in https://github.com/typeddjango/django-stubs/pull/2195 - Add missing `django.core.management.utils` functions by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2200 - Improve `django.middleware` stubs by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2202 - Improve `django.http` stubs by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2201 - Tests: Migrate `db/models/test_constraints.yml` to 'assert_type' tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2204 - Allow any function for admin's `display` and `action` decorators by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2210 - Remove invalid re-export `django.forms.ChoiceWidget` by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2207 - Model.\_meta.pk is non-None by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2218 - update / create defaults are read-only Mapping by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2216 - Add missing math.Random database function by [@&#8203;noamkush](https://github.com/noamkush) in https://github.com/typeddjango/django-stubs/pull/2222 - Make `ReverseManyToOneDescriptor` generic over a model by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2227 - Extract through table creation to separate method by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2229 - Do many related manager creation during semantic analysis by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2231 - Expand CheckRegistry.register as function ([#&#8203;2232](https://github.com/typeddjango/django-stubs/issues/2232)) by [@&#8203;jwhitlock](https://github.com/jwhitlock) in https://github.com/typeddjango/django-stubs/pull/2233 - don't copy magic or private methods in from_queryset managers by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2240 - Make plugin handle explicitly declared reverse descriptors for FKs by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2230 - Expect a `QuerySet` for multiple defaults in `MultipleObjectMixin` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2191 - fix handling of explicit `objects` annotation by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2241 - Add atomic_blocks to base DB wrapper by [@&#8203;palfrey](https://github.com/palfrey) in https://github.com/typeddjango/django-stubs/pull/2242 - walk mro for Field set type annotations by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2244 - Add `serialized_aliases` parameter to `setup_databases` function in `django.test.utils` by [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) in https://github.com/typeddjango/django-stubs/pull/2247 - use field annotations for values_list types by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2248 - Improve types of `ConnectionProxy` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2246 - Add `get_template_tag_modules` function signature to `django.template.backends.django` by [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) in https://github.com/typeddjango/django-stubs/pull/2250 - add PlaceholderNode when deferring manager class hook by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2228 - Update function signatures for `django.db.models.sql.Query` class by [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) in https://github.com/typeddjango/django-stubs/pull/2253 - Update `admin.sites._ViewType` bound to allow `StreamingHttpResponse` by [@&#8203;savanto](https://github.com/savanto) in https://github.com/typeddjango/django-stubs/pull/2256 - Add `Options._get_fields` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2254 - Support inheriting ManyToManyField from an abstract model by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2260 - Allow single generic param for Field in ForeignKey by [@&#8203;rafonseca](https://github.com/rafonseca) in https://github.com/typeddjango/django-stubs/pull/2261 - Refactor: Unify plugin check for model type info by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2263 - add `Path` type argument to tuple returned by `get_app_template_dirs` by [@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas) in https://github.com/typeddjango/django-stubs/pull/2266 - add missing type argument to `Paginator` by [@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas) in https://github.com/typeddjango/django-stubs/pull/2271 - Update mypy to 1.11.0 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2269 - Check calls to filtering manager methods involving `ManyToManyField` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2275 - Prepare for a release `5.0.3` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2274 - lookup manager type via mro by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2276 - Check model fields on filtering methods of queryset types by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2277 - fill QuerySet generics using the manager's model type by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2281 - convert as_manager hooks to base class hook by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2282 #### New Contributors - [@&#8203;YPCrumble](https://github.com/YPCrumble) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2177 - [@&#8203;jwhitlock](https://github.com/jwhitlock) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2233 - [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2247 - [@&#8203;savanto](https://github.com/savanto) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2256 - [@&#8203;rafonseca](https://github.com/rafonseca) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2261 - [@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2266 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3 ### [`v5.0.2`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.2) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.0.1...5.0.2) #### What's Changed This is a re-release of django-stubs `5.0.1` with a minor fix: - Set lower bound of `django-stubs-ext` dependency to `5.0.2` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2186 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.1...5.0.2 ### Release notes for version 5.0.1 #### Headline changes - Support for Django 4.1 have been dropped by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2133 - A new extra, `django-stubs[oracle]`, was added by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2131 - Remove QuerySet alias hacks via PEP 696 TypeVar defaults. All usages of `QuerySetAny` and `ValuesQuerySet` can now be replaced with simple `QuerySet` by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2104 [More details in this announcement](https://github.com/typeddjango/django-stubs/discussions/2194) #### What's Changed - 5.0: Update `django.contrib.admin.views` and `django.forms.forms.Form` metaclass by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2079 - Fix IndexError for custom queryset managers by [@&#8203;meshy](https://github.com/meshy) in https://github.com/typeddjango/django-stubs/pull/1913 - 5.0: Update `django.db.models.lookups` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2103 - 5.0: Update `django.db.backends.utils` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2102 - 5.0: Update `django.forms.field.Field` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2107 - 5.0: Update `django.contrib.messages.storage.cookie` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2106 - Tests: Add test case for settings import cycle by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2098 - 5.0: Update `django.db.models.expressions` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2110 - 5.0: Update `django.contrib.auth.backends` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2111 - 5.0: Update `django.contrib.auth.base_user` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2113 - 5.0: Update `django.db.migrations.serializer` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2109 - 5.0: Update `django.db.backends.base.features.BaseDatabaseFeature` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2099 - 5.0: Update `django.db.backends.base.operations.BaseDatabaseOperations` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2100 - Fix annotation for `request.auser` by [@&#8203;bshelkhonov](https://github.com/bshelkhonov) in https://github.com/typeddjango/django-stubs/pull/2108 - 5.0: Update ` django.contrib.gis.admin.widgets `and `django.contrib.gis.admin.options` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2116 - 5.0: Update `django.forms.boundfield` and `django.forms.utils` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2118 - Prepare django-stubs-ext for QuerySet typevar refactor by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2117 - `BaseBackend.get_user`: Relax `user_id` param type by [@&#8203;tony](https://github.com/tony) in https://github.com/typeddjango/django-stubs/pull/2121 - 5.0: Update `django.forms.renderers` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2119 - 5.0: Update `django.forms.forms` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2122 - 5.0: Update `django.contrib.gis.db.backends.sqatialite.schema` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2123 - Improve types in DB backend `schema` modules by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2124 - 5.0: Update `django.contrib.messages.test` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2126 - \[pre-commit.ci] pre-commit autoupdate by [@&#8203;pre-commit-ci](https://github.com/pre-commit-ci) in https://github.com/typeddjango/django-stubs/pull/2129 - More pre-commit checks by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2132 - Bump django from 5.0.5 to 5.0.6 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/typeddjango/django-stubs/pull/2135 - 5.0: Update `django.contrib.contenttypes.prefetch` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2115 - 5.0: Update `django.contrib.admin.widgets` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2105 - 5.0: Update `django.contrib.contenttypes.fields.GenericForeignKey` methods by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2137 - Relax typing of `backend` in `django.contrib.auth` (`ModelBackend` -> `BaseBackend`) by [@&#8203;tony](https://github.com/tony) in https://github.com/typeddjango/django-stubs/pull/2141 - fix: UserAdmin accepts AbstractUser by [@&#8203;vadimshvetsov](https://github.com/vadimshvetsov) in https://github.com/typeddjango/django-stubs/pull/2139 - 4.2.8: Update `Query.resolve_lookup_value()` parameters by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2136 - Increase priority of mypy internal Django settings import by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2127 - Fix 'Import cycle from Django settings module' errors function context by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2142 - Adjust priority of Django settings import again by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2143 - 5.0: Update `django.forms.models` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2146 - Add typing of `django.db.migrations.autodetector` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2149 - 5.0: Update `django.db.models.enums` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2148 - 5.0: Update `django.forms.widgets` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2147 - Add GitHub actions release workflow for `django-stubs-ext` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2150 - 5.0: Update `django.db.models.field.related` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2151 - Bump pre-commit from 3.7.0 to 3.7.1 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/typeddjango/django-stubs/pull/2155 - Fix `TextChoices.__new__()` parameter type by [@&#8203;mvaled](https://github.com/mvaled) in https://github.com/typeddjango/django-stubs/pull/2156 - Ensure ManyToManyField related managers supports renamed imports by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2153 - 5.0: Update `django.contrib.gis.db.backends.postgis.operations` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2138 - 5.0: Update `django.db.models.fields.reverse_related` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2158 - 5.0: Update `django.db.models.field`: add `generated` attribute to model fields by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2152 - 5.0: Update `django.db.models.sql.datastructures` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2159 - 5.0: Update `django.db.models.query` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2160 - \[pre-commit.ci] pre-commit autoupdate by [@&#8203;pre-commit-ci](https://github.com/pre-commit-ci) in https://github.com/typeddjango/django-stubs/pull/2161 - 5.0: Update `django.db.models.sql.compiler` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2166 - 5.0: Update `django.db.models.functions.datetime` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2167 - 5.0: Update `django.forms.formsets` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2145 - 5.0: Update `django.db.models.query_utils` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2165 - Bump pytest from 8.2.0 to 8.2.1 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/typeddjango/django-stubs/pull/2169 - 5.0: Update `django.db.models.functions.datetime.Now` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2173 - 5.0: Update `django.db.models.sql.query.Query` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2172 - 5.0: Update `django.db.models.field.related_descriptors` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2157 - 5.0: Update django.db.models.constraints.UniqueConstraint by [@&#8203;steve148](https://github.com/steve148) in https://github.com/typeddjango/django-stubs/pull/2175 - 5.0: Update `django.db.models.expressions` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2176 - Add `BaseConstraint.get_violation_error_message()` by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/2178 - Fix signature of Choices member creation, add `assert_type` test cases, run `pyright` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2162 - `AbstractBaseSession`: Use model fields for subclassed cases by [@&#8203;tony](https://github.com/tony) in https://github.com/typeddjango/django-stubs/pull/2180 - Migrate 'test_conf.yml' to 'assert_type' tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2182 - Don't crash when inspecting classes loaded from cache by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2185 - Formset get_queryset() returns QuerySet by [@&#8203;MrkGrgsn](https://github.com/MrkGrgsn) in https://github.com/typeddjango/django-stubs/pull/2174 - Prepare for a release `5.0.1` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2183 #### New Contributors - [@&#8203;meshy](https://github.com/meshy) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1913 - [@&#8203;bshelkhonov](https://github.com/bshelkhonov) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2108 - [@&#8203;vadimshvetsov](https://github.com/vadimshvetsov) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2139 - [@&#8203;mvaled](https://github.com/mvaled) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2156 - [@&#8203;steve148](https://github.com/steve148) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2175 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1 ### [`v5.0.1`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.1) [Compare Source](https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1) #### Headline changes - Support for Django 4.1 have been dropped by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2133 - A new extra, `django-stubs[oracle]`, was added by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2131 - Remove QuerySet alias hacks via PEP 696 TypeVar defaults. All usages of `QuerySetAny` and `ValuesQuerySet` can now be replaced with simple `QuerySet` by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2104 [More details in this announcement](https://github.com/typeddjango/django-stubs/discussions/2194) #### What's Changed - 5.0: Update `django.contrib.admin.views` and `django.forms.forms.Form` metaclass by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2079 - Fix IndexError for custom queryset managers by [@&#8203;meshy](https://github.com/meshy) in https://github.com/typeddjango/django-stubs/pull/1913 - 5.0: Update `django.db.models.lookups` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2103 - 5.0: Update `django.db.backends.utils` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2102 - 5.0: Update `django.forms.field.Field` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2107 - 5.0: Update `django.contrib.messages.storage.cookie` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2106 - Tests: Add test case for settings import cycle by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2098 - 5.0: Update `django.db.models.expressions` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2110 - 5.0: Update `django.contrib.auth.backends` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2111 - 5.0: Update `django.contrib.auth.base_user` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2113 - 5.0: Update `django.db.migrations.serializer` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2109 - 5.0: Update `django.db.backends.base.features.BaseDatabaseFeature` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2099 - 5.0: Update `django.db.backends.base.operations.BaseDatabaseOperations` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2100 - Fix annotation for `request.auser` by [@&#8203;bshelkhonov](https://github.com/bshelkhonov) in https://github.com/typeddjango/django-stubs/pull/2108 - 5.0: Update ` django.contrib.gis.admin.widgets `and `django.contrib.gis.admin.options` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2116 - 5.0: Update `django.forms.boundfield` and `django.forms.utils` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2118 - Prepare django-stubs-ext for QuerySet typevar refactor by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2117 - `BaseBackend.get_user`: Relax `user_id` param type by [@&#8203;tony](https://github.com/tony) in https://github.com/typeddjango/django-stubs/pull/2121 - 5.0: Update `django.forms.renderers` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2119 - 5.0: Update `django.forms.forms` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2122 - 5.0: Update `django.contrib.gis.db.backends.sqatialite.schema` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2123 - Improve types in DB backend `schema` modules by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2124 - 5.0: Update `django.contrib.messages.test` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2126 - \[pre-commit.ci] pre-commit autoupdate by [@&#8203;pre-commit-ci](https://github.com/pre-commit-ci) in https://github.com/typeddjango/django-stubs/pull/2129 - More pre-commit checks by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2132 - Bump django from 5.0.5 to 5.0.6 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/typeddjango/django-stubs/pull/2135 - 5.0: Update `django.contrib.contenttypes.prefetch` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2115 - 5.0: Update `django.contrib.admin.widgets` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2105 - 5.0: Update `django.contrib.contenttypes.fields.GenericForeignKey` methods by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2137 - Relax typing of `backend` in `django.contrib.auth` (`ModelBackend` -> `BaseBackend`) by [@&#8203;tony](https://github.com/tony) in https://github.com/typeddjango/django-stubs/pull/2141 - fix: UserAdmin accepts AbstractUser by [@&#8203;vadimshvetsov](https://github.com/vadimshvetsov) in https://github.com/typeddjango/django-stubs/pull/2139 - 4.2.8: Update `Query.resolve_lookup_value()` parameters by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2136 - Increase priority of mypy internal Django settings import by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2127 - Fix 'Import cycle from Django settings module' errors function context by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2142 - Adjust priority of Django settings import again by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2143 - 5.0: Update `django.forms.models` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2146 - Add typing of `django.db.migrations.autodetector` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2149 - 5.0: Update `django.db.models.enums` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2148 - 5.0: Update `django.forms.widgets` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2147 - Add GitHub actions release workflow for `django-stubs-ext` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2150 - 5.0: Update `django.db.models.field.related` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2151 - Bump pre-commit from 3.7.0 to 3.7.1 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/typeddjango/django-stubs/pull/2155 - Fix `TextChoices.__new__()` parameter type by [@&#8203;mvaled](https://github.com/mvaled) in https://github.com/typeddjango/django-stubs/pull/2156 - Ensure ManyToManyField related managers supports renamed imports by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2153 - 5.0: Update `django.contrib.gis.db.backends.postgis.operations` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2138 - 5.0: Update `django.db.models.fields.reverse_related` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2158 - 5.0: Update `django.db.models.field`: add `generated` attribute to model fields by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2152 - 5.0: Update `django.db.models.sql.datastructures` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2159 - 5.0: Update `django.db.models.query` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2160 - \[pre-commit.ci] pre-commit autoupdate by [@&#8203;pre-commit-ci](https://github.com/pre-commit-ci) in https://github.com/typeddjango/django-stubs/pull/2161 - 5.0: Update `django.db.models.sql.compiler` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2166 - 5.0: Update `django.db.models.functions.datetime` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2167 - 5.0: Update `django.forms.formsets` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2145 - 5.0: Update `django.db.models.query_utils` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2165 - Bump pytest from 8.2.0 to 8.2.1 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/typeddjango/django-stubs/pull/2169 - 5.0: Update `django.db.models.functions.datetime.Now` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2173 - 5.0: Update `django.db.models.sql.query.Query` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2172 - 5.0: Update `django.db.models.field.related_descriptors` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2157 - 5.0: Update django.db.models.constraints.UniqueConstraint by [@&#8203;steve148](https://github.com/steve148) in https://github.com/typeddjango/django-stubs/pull/2175 - 5.0: Update `django.db.models.expressions` by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2176 - Add `BaseConstraint.get_violation_error_message()` by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/2178 - Fix signature of Choices member creation, add `assert_type` test cases, run `pyright` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2162 - `AbstractBaseSession`: Use model fields for subclassed cases by [@&#8203;tony](https://github.com/tony) in https://github.com/typeddjango/django-stubs/pull/2180 - Migrate 'test_conf.yml' to 'assert_type' tests by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2182 - Don't crash when inspecting classes loaded from cache by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2185 - Formset get_queryset() returns QuerySet by [@&#8203;MrkGrgsn](https://github.com/MrkGrgsn) in https://github.com/typeddjango/django-stubs/pull/2174 - Prepare for a release `5.0.1` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2183 #### New Contributors - [@&#8203;meshy](https://github.com/meshy) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1913 - [@&#8203;bshelkhonov](https://github.com/bshelkhonov) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2108 - [@&#8203;vadimshvetsov](https://github.com/vadimshvetsov) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2139 - [@&#8203;mvaled](https://github.com/mvaled) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2156 - [@&#8203;steve148](https://github.com/steve148) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2175 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1 ### [`v5.0.0`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.0) [Compare Source](https://github.com/typeddjango/django-stubs/compare/4.2.7...5.0.0) #### Announcements - `QuerySet` class no longer derives from `Collection`. If you run into errors like `incompatible type "_QuerySet[User, User]"; expected "Collection[User]"`, [please read this announcement](https://github.com/typeddjango/django-stubs/discussions/2095). #### Headline changes - Remove incorrect `Collection` base class and `__contains__` method from `QuerySet` by [@&#8203;fidoriel](https://github.com/fidoriel) in https://github.com/typeddjango/django-stubs/pull/1925 - Pyright joins the workflow in an advisory capacity by [@&#8203;jorenham](https://github.com/jorenham) in https://github.com/typeddjango/django-stubs/pull/2019 - feat: Allow setting django_settings_module from env by [@&#8203;armanckeser](https://github.com/armanckeser) in https://github.com/typeddjango/django-stubs/pull/2021 - Add `ManyRelatedManager.through` attribute and generic type parameter by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2026 #### What's Changed - Make `StrPromise` not inherit from `Sequence[str]` by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/1841 - Update and prepare for Django 5.0 by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/1859 - Ensure mypy plugin processes inherited many to many fields by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1864 - Include ModelBase subclasses in plugin base class hook condition by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1863 - \[5.0] Added many new a-prefixed asynchronous methods by [@&#8203;bigfootjon](https://github.com/bigfootjon) in https://github.com/typeddjango/django-stubs/pull/1741 - Remove section regarding custom queryset methods from README by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1865 - Fix type of `AppConfig.models_module` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1866 - Allow `None` in settings `MIGRATION_MODULES` dict values by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/1871 - Add type hints for `JSONField.from_db_value` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1879 - Fix/pyright unknown by [@&#8203;dephiros](https://github.com/dephiros) in https://github.com/typeddjango/django-stubs/pull/1873 - Fix type hints of `converters` in `urls.resolvers` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1892 - Update mypy to 1.8.0 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/1885 - Add `@type_check_only` to all Protocols and known stubs-only classes by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/1894 - Fix types for UniqueConstraint instantiation by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1880 - Add `ModuleType` as a possible type to `URLResolver.urlconf_name` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1891 - Fix type hint of `URLPattern.default_args` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1895 - Update ruff and silence `PYI046` by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/1907 - Use PEP 570 syntax by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1908 - Fix readme settings example by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1910 - Fix type hint of `EmailBackend.ssl_keyfile` and `EmailBackend.ssl_certfile` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1911 - Add type of `django.VERSION` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1916 - Added `CommandParser` to `commands.__init__` by [@&#8203;jamesbraza](https://github.com/jamesbraza) in https://github.com/typeddjango/django-stubs/pull/1927 - \[5.0] add `assume_scheme` to forms.URLField by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/1929 - Fix return type of `BaseModelAdmin.formfield_for_dbfield` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1934 - Revert `pre-commit==3.6.1` by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/1936 - Fix type hint of `Response.set_cookie.max_age` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1941 - 5.0: Add ChoicesType by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1942 - Add through_defaults for RelatedManager methods by [@&#8203;mfosterw](https://github.com/mfosterw) in https://github.com/typeddjango/django-stubs/pull/1943 - Update type hints of `core.signing` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1945 - \[5.0] Update `core.validators` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1947 - \[5.0] Update `core.paginator` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1946 - Generic `forms.ModelChoiceField` by [@&#8203;UnknownPlatypus](https://github.com/UnknownPlatypus) in https://github.com/typeddjango/django-stubs/pull/1889 - Support processing of other relations and fields when one is broken by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1877 - Allowing `set` in `model_to_dict`'s `exclude` by [@&#8203;jamesbraza](https://github.com/jamesbraza) in https://github.com/typeddjango/django-stubs/pull/1952 - \[5.0] Add django.db.models.GeneratedField by [@&#8203;palfrey](https://github.com/palfrey) in https://github.com/typeddjango/django-stubs/pull/1944 - Fix type hint of `BaseEngine.template_dirs` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1954 - Update type hints of contrib.auth.hashers by [@&#8203;yhay81](https://github.com/yhay81) in https://github.com/typeddjango/django-stubs/pull/1955 - deps: Upgrade pre-commit for newer versions of python by [@&#8203;delfick](https://github.com/delfick) in https://github.com/typeddjango/django-stubs/pull/1961 - 5.0: Add auth.middleware.auser by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1966 - 5.0: Add ModelAdmin.show_facets by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1967 - ruff: Fix config warnings by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1964 - 5.0: Add BaseConstraint.violation_error_code by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1969 - 5.0: Add Signal.asend and Signal.asend_robust by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1965 - 5.0: Add QuerySet.(a)update_or_create new create_defaults arg by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1970 - 5.0: Add AdminSite.get_log_entries by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1963 - 5.0: Add gis ClosestPoint by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1968 - 5.0: Rename save_existing arg instance to obj by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1971 - 5.0: Remove admin.helpers.checkbox by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1972 - 5.0: Change annotation_select_mask from set\[str] to list\[str] by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1973 - fixup: Pass violation_error_code to init by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1975 - Avoid returning None from get_field_related_model_cls by [@&#8203;SingingTree](https://github.com/SingingTree) in https://github.com/typeddjango/django-stubs/pull/1956 - 5.0: Pass positional args name and violation_error_message to BaseConstraint by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1974 - 5.0: Remove pytz support by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1980 - 5.0: Remove global setting USE_L10N by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1979 - 5.0: Remove OSMGeoAdmin, GeoModelAdmin by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1981 - 5.0: Remove extra_tests arg for DiscoverRunner.build_suite/run_tests by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1978 - 5.0: Remove django.utils baseconv and datetime_safe modules by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1977 - 5.0: Add request arg to ModelAdmin.lookup_allowed by [@&#8203;q0w](https://github.com/q0w) in https://github.com/typeddjango/django-stubs/pull/1976 - Add URL converter protocol type by [@&#8203;adamchainz](https://github.com/adamchainz) in https://github.com/typeddjango/django-stubs/pull/1984 - Fix type annotation for RegisterLookupMixin.class_lookups by [@&#8203;avoronov-box](https://github.com/avoronov-box) in https://github.com/typeddjango/django-stubs/pull/1962 - Update django to 5.0.3 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/1990 - Remove some deprecated Django 3.x APIs by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/1991 - Fix BaseModelAdmin.view_on_site annotation by [@&#8203;cuu508](https://github.com/cuu508) in https://github.com/typeddjango/django-stubs/pull/1993 - Allow immutable `extra_context` on `TemplateView`s by [@&#8203;samueljsb](https://github.com/samueljsb) in https://github.com/typeddjango/django-stubs/pull/1994 - Add BoundField.**html**() by [@&#8203;pelme](https://github.com/pelme) in https://github.com/typeddjango/django-stubs/pull/1999 - Allow timedelta type for session.set_expiry() argument by [@&#8203;mlazar-endear](https://github.com/mlazar-endear) in https://github.com/typeddjango/django-stubs/pull/2001 - Bump `pytest-mypy-plugins` to 3.1.1 by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2003 - Update mypy, add a bit more metadata by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/1997 - 5.0: Update `django.contrib.auth` by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2009 - 5.0: Update `django.conf` by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2008 - 5.0: Update `django.views` by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2007 - 5.0: Update `django.test` by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2005 - 5.0: Update `django.utils` by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2006 - Specify d.c.serializers.base.DeserializedObject.object type by [@&#8203;j00bar](https://github.com/j00bar) in https://github.com/typeddjango/django-stubs/pull/2010 - Clean the cache on each run of `stubtest` by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2015 - Keep abstract Django models internally in the plugin by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2017 - Add GitHub actions release workflow by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1950 - Adding missing `Q` methods: `check()`, `flatten()` by [@&#8203;Alexerson](https://github.com/Alexerson) in https://github.com/typeddjango/django-stubs/pull/1899 - Improve types in `utils.termcolors` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1901 - Set the calculated metaclass when creating type info in the plugin by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2025 - Do not annotate MRs with pyright by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2023 - Use `PRI_MYPY` in `get_additional_deps` hook by [@&#8203;sobolevn](https://github.com/sobolevn) in https://github.com/typeddjango/django-stubs/pull/2024 - Update `_default_manager` and `_base_manager` to be `Manager` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2022 - Determine the type of queryset methods on unions by [@&#8203;delfick](https://github.com/delfick) in https://github.com/typeddjango/django-stubs/pull/2027 - Add first stub for get_model_admin by [@&#8203;nebiyuelias1](https://github.com/nebiyuelias1) in https://github.com/typeddjango/django-stubs/pull/2029 - 5.0: Update `django.contrib.admin` by [@&#8203;ngnpope](https://github.com/ngnpope) in https://github.com/typeddjango/django-stubs/pull/2004 - \[5.0] Update `core.files` by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1949 - \[5.0] Update `core.cache.backends`, add `RedisCache` and related classes by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/1948 - Fix `AsyncClient.defaults` attribute typing by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/1878 - Relax type for `fields` argument of `Model.refresh_from_db()` by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2035 - \[5.0] Add missing stubs for geos by [@&#8203;nebiyuelias1](https://github.com/nebiyuelias1) in https://github.com/typeddjango/django-stubs/pull/2034 - Make `AdminSite.get_model_admin` generic by [@&#8203;Viicos](https://github.com/Viicos) in https://github.com/typeddjango/django-stubs/pull/2038 - \[5.0] Add `db_default=` parameter to models `Field` classes by [@&#8203;Skorpyon](https://github.com/Skorpyon) in https://github.com/typeddjango/django-stubs/pull/1876 - Remove `class Meta` from `Model` and `Form` class stubs by [@&#8203;jorenham](https://github.com/jorenham) in https://github.com/typeddjango/django-stubs/pull/2000 - Add datetime.timedelta as valid type for HttpRequest.get_signed_cookie() max_age argument. by [@&#8203;pelme](https://github.com/pelme) in https://github.com/typeddjango/django-stubs/pull/2045 - CI: Update Django 4.2 version used for test suite by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2049 - Refine return type for `ManyToOneRel.get_accessor_name()` by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2052 - Add `DeferredAttribute.__get__()` by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2050 - Add missing methods and superclass to `FieldFile` by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2051 - Add `db_comment=` parameter to Postgres and GIS model fields by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in https://github.com/typeddjango/django-stubs/pull/2054 - Correct type for `db.models.sql.query.Query.join()` argument by [@&#8203;mthuurne](https://github.com/mthuurne) in https://github.com/typeddjango/django-stubs/pull/2055 - 5.0: Update `django.db.backends.oracle.base` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2057 - 5.0: Update `django.test.client` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2059 - 5.0: Update `django.test.html` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2060 - 5.0: Update `django.test.runner` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2061 - 5.0: Update `django.template`, `django.templatetags` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2063 - 5.0: Update `django.test.testcases` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2062 - 5.0: Update `django.http` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2064 - 5.0: Update `django.core.management` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2067 - 5.0: Update `django.core.handlers` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2066 - 5.0: Update `django.contrib.sessions.serializers`, `django.core.serializers` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2068 - Update django app related types by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2071 - Add a `returncode` attribute to `CommandError` by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2072 - Disable mypy `ignore_missing_imports` option by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2058 - fix typing for URL validator.**call** by [@&#8203;asottile](https://github.com/asottile) in https://github.com/typeddjango/django-stubs/pull/2074 - Use field generic types for descriptors by [@&#8203;md384](https://github.com/md384) in https://github.com/typeddjango/django-stubs/pull/2048 - 5.0: Update `django.core.servers.basehttp` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2070 - Update `django.template.base.Template.render()` argument type by [@&#8203;Majsvaffla](https://github.com/Majsvaffla) in https://github.com/typeddjango/django-stubs/pull/1160 - 5.0: Add `django.utils.choices` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2075 - 5.0: Update `django.contrib.sitemaps`, `django.contrib.staticfiles` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2076 - Update pyright report options (`reportMissingTypeArgument`, `reportPrivateUsage`) by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2077 - 5.0: Update `django.contrib.postgres` by [@&#8203;sudosubin](https://github.com/sudosubin) in https://github.com/typeddjango/django-stubs/pull/2078 - Add `path` signature for async views by [@&#8203;jlost](https://github.com/jlost) in https://github.com/typeddjango/django-stubs/pull/2085 - Remove incorrect `Reversible` base class from `QuerySet` by [@&#8203;intgr](https://github.com/intgr) in https://github.com/typeddjango/django-stubs/pull/2094 - Version 5.0.0 release (django-stubs, django-stubs-ext) by [@&#8203;flaeppe](https://github.com/flaeppe) in https://github.com/typeddjango/django-stubs/pull/2087 #### New Contributors - [@&#8203;Viicos](https://github.com/Viicos) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1866 - [@&#8203;dephiros](https://github.com/dephiros) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1873 - [@&#8203;jamesbraza](https://github.com/jamesbraza) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1927 - [@&#8203;mfosterw](https://github.com/mfosterw) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1943 - [@&#8203;palfrey](https://github.com/palfrey) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1944 - [@&#8203;yhay81](https://github.com/yhay81) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1955 - [@&#8203;delfick](https://github.com/delfick) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1961 - [@&#8203;SingingTree](https://github.com/SingingTree) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1956 - [@&#8203;avoronov-box](https://github.com/avoronov-box) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1962 - [@&#8203;cuu508](https://github.com/cuu508) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1993 - [@&#8203;samueljsb](https://github.com/samueljsb) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1994 - [@&#8203;pelme](https://github.com/pelme) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1999 - [@&#8203;mlazar-endear](https://github.com/mlazar-endear) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2001 - [@&#8203;j00bar](https://github.com/j00bar) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2010 - [@&#8203;jorenham](https://github.com/jorenham) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2019 - [@&#8203;fidoriel](https://github.com/fidoriel) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1925 - [@&#8203;armanckeser](https://github.com/armanckeser) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2021 - [@&#8203;nebiyuelias1](https://github.com/nebiyuelias1) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2029 - [@&#8203;Skorpyon](https://github.com/Skorpyon) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1876 - [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2054 - [@&#8203;sudosubin](https://github.com/sudosubin) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2057 - [@&#8203;md384](https://github.com/md384) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2048 - [@&#8203;Majsvaffla](https://github.com/Majsvaffla) made their first contribution in https://github.com/typeddjango/django-stubs/pull/1160 - [@&#8203;jlost](https://github.com/jlost) made their first contribution in https://github.com/typeddjango/django-stubs/pull/2085 **Full Changelog**: https://github.com/typeddjango/django-stubs/compare/4.2.7...5.0.0 </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 MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
_renovate commented 2025-04-09 17:10:45 +02:00 (Migrated from edugit.org)

restored source branch renovate/django-stubs-5.x

restored source branch `renovate/django-stubs-5.x`
_renovate (Migrated from edugit.org) closed this pull request 2025-04-10 11:37:29 +02:00
_renovate commented 2025-04-10 11:37:31 +02:00 (Migrated from edugit.org)

changed title from Update dependency django-stubs to v5 to Update dependency django-stubs to v5{+ - autoclosed+}

changed title from **Update dependency django-stubs to v5** to **Update dependency django-stubs to v5{+ - autoclosed+}**

Pull request closed

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
aleksis/AlekSIS-App-DashboardFeeds!148
No description provided.