fix(deps): update django-stubs to v6 (major)#1978
Merged
mschoettle merged 1 commit intomainfrom Mar 17, 2026
Merged
Conversation
mschoettle
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==5.2.9→==6.0.0==5.2.9→==6.0.0Release Notes
typeddjango/django-stubs (django-stubs)
v6.0.0Compare Source
This version add stubs coverage to all known Django 6.0 functionality. If you find anything missing, please open an issue.
Besides Django 6.0 updates, there is an even larger number of other improvements.
Many thanks to everyone who helped out, the amount of contributions has been amazing!
Django 6.0 stubs updates
databases=parameter tocheck_generic_foreign_keys,check_model_name_lengthsby @Tosinibikunle in #2951__del__methods by @UnknownPlatypus in #2974SetPasswordMixin.__class_getitem__by @sobolevn in #2985main/django/contrib/auth/admin.pyby @sobolevn in #2986ForminDeleteViewtype parameters by @emmanuel-ferdman in #2996FileFieldandImageFieldinstance access return types by @emmanuel-ferdman in #2997Other stubs improvements
SessionBasedict method signatures by @emmanuel-ferdman in #3020LimitedStreamstub signatures by @emmanuel-ferdman in #3022IO[bytes]with_PostDataProtocolto fixHttpRequestcompatibility by @Skyiesac in #3167ResponseHeaderscan take any mapping, not justdictby @sobolevn in #3014formfield_callbackto returnNoneby @emmanuel-ferdman in #3021response_gone_classby @UnknownPlatypus in #3061get_violation_error_messageto return dictionaries by @meunomemauricio in #3065SubqueryandExiststo accept subquery inputs by @emmanuel-ferdman in #3103AdminSeleniumTestCase.assertCountSeleniumElementsby @DeXtAr47-oss in #3117BaseDatabaseFeatures.rounds_to_evenby @JaeHyuckSa in #3128django.db.models.fields.tuple_lookups moduleby @JaeHyuckSa in #3131ForeignKey.cast_db_typemethod by @JaeHyuckSa in #3126BaseDatabaseFeatures.supports_tuple_lookupsby @JaeHyuckSa in #3129Q.identitycached_propertyby @JaeHyuckSa in #3127BaseDatabaseSchemaEditor.sql_pk_constraintby @JaeHyuckSa in #3130MySQLGISSchemaEditor.__init__by @JaeHyuckSa in #3139django.utils.datastructures.ImmutableListby @ngnpope in #3155django.db.models.expressions.Windowby @ngnpope in #3170value_to_stringreturn types for JSONField and RangeField by @emmanuel-ferdman in #3188allowed_defaultin expression classes by @ahmedasar00 in #3186Plugin updates
NotUpdatedexception by @ngnpope in #3046Prefetch+to_attrand multiple levels by @UnknownPlatypus in #3151update_fieldsandunique_fieldsofbulk_createby @UnknownPlatypus in #3150earliest/latest/orderbyby @UnknownPlatypus in #3158only/deferby @UnknownPlatypus in #3165Housekeeping
_PropertyDescriptorusage inresponse.pyiby @sobolevn in #3086django.utils.inspectstubtest errors on Python 3.14+ by @ngnpope in #3152explicit-overrideand--disallow-subclassing-anyby @ngnpope in #3172django-modern-restto the README by @sobolevn in #3183New Contributors
Full Changelog: typeddjango/django-stubs@5.2.9...6.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 PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.