Update dependency django-stubs to v5 #25
Open
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:
1.9.0->5.2.7Release Notes
typeddjango/django-stubs (django-stubs)
v5.2.7Compare Source
What's Changed
Fixes a regression in django-stubs version 5.2.6:
Full Changelog: typeddjango/django-stubs@5.2.6...5.2.7
v5.2.6Compare Source
What's Changed
Improvements
add_orderingsignature too by @UnknownPlatypus in #2822related_query_nameinModel._meta.get_fieldsby @UnknownPlatypus in #2821strict_model_abstract_attrssetting to allowmodels.Model.objectsaccess by @sobolevn in #2830_replace_type_varthat can potentially cause cache problems by @sobolevn in #2834union/intersection/differenceto support QuerySet usingvalues_listandvaluesby @UnknownPlatypus in #2829log_actiondeprecation notice by @UnknownPlatypus in #2839.values/.values_listcalls by @UnknownPlatypus in #2836GenericPrefetchby @UnknownPlatypus in #2851agetcalls by @UnknownPlatypus in #2856fieldsargument tobulk_updateby @UnknownPlatypus in #2808Housekeeping & CI
mypy_primerworkflow by @sobolevn in #2819django.contrib.contenttypesinstalled app in tests by @UnknownPlatypus in #2853pyproject.tomlby @intgr in #2847Ruff
ruffto0.13.0by @sobolevn in #2828uvpackage manageruvby @intgr in #2846uv_buildbuild system & cleanup by @intgr in #2848uvworkspace fordjango-stubs-extalso by @intgr in #2857New Contributors
Full Changelog: typeddjango/django-stubs@5.2.5...5.2.6
v5.2.5Compare Source
What's Changed
_StrPromisereturned byreverse_lazyby @sobolevn in #2814.order_byto accept anyCombinableby @sobolevn in #2816Full Changelog: typeddjango/django-stubs@5.2.4...5.2.5
v5.2.4Compare Source
What's Changed
TestClient.getregression by @sobolevn in #2812Full Changelog: typeddjango/django-stubs@5.2.3...5.2.4
v5.2.3Compare Source
What's Changed
Model._meta.get_field("field_name")type inference by @UnknownPlatypus in #2748__init__calls by @UnknownPlatypus in #2749settings.TEMPLATEtypes by @UnknownPlatypus in #2741content_type_extracontainsbytes, notstrby @alexmv in #2754reverse_lazy()by @pgcd in #2766FormMixin.success_urlto_StrOrPromiseby @pgcd in #2769BaseForm.add_error()in documentation by @CarrotManMatt in #2774OrderedDictusage, this is the default since py 3.6 by @UnknownPlatypus in #2780get_current_moduleutil by @UnknownPlatypus in #2781to_attrinferrence inPrefetchcalls by @UnknownPlatypus in #2779get_class_init_argument_by_nameinresolve_many_to_many_argumentsby @UnknownPlatypus in #2782Modelinference from customQuerySet/Managerby @UnknownPlatypus in #2784Prefetchas generic and do specialization in the plugin by @UnknownPlatypus in #2786Meta.permissionstype by @UnknownPlatypus in #2787prefetch_relatedcalls by @UnknownPlatypus in #2789TypedModelMetaby @UnknownPlatypus in #2788.select_relatedstubs by @UnknownPlatypus in #2792.prefetch_related(..., to_attr="foo")conflict with.annotate(foo=...)by @UnknownPlatypus in #2791to_attrtarget (alredy defined fields) by @UnknownPlatypus in #2794order_by/defer/only/distinct/order_by/explain/dates/datetimesby @UnknownPlatypus in #2795prefetch_relatedtypes with an overload by @UnknownPlatypus in #2793to_attrtargets by @UnknownPlatypus in #2797select_relatedlookups by @UnknownPlatypus in #2806New Contributors
Full Changelog: typeddjango/django-stubs@5.2.2...5.2.3
v5.2.2Compare Source
What's Changed
reveal_typeto return its argument by @andersk in #2716RawQuerySetby @youtux in #2718jointoJSONObjectby @sobolevn in #2721QuerySet._raw_deleteby @asottile in #2733resolve_callablesargument type toMappingby @rodmk in #2735HttpResponse.context_databy @UnknownPlatypus in #2737django.contrib.auth.formsby @UnknownPlatypus in #2738.values()types when expressions are used by @UnknownPlatypus in #2739BasePasswordHasher.safe_summarycommonly usesStrOrPromiseby @jdelic in #2742FormMixinplugin by @UnknownPlatypus in #2746New Contributors
Full Changelog: typeddjango/django-stubs@5.2.1...5.2.2
v5.2.1Compare Source
What's Changed
<type> is not present at runtimeerrors by @UnknownPlatypus in #2635BaseManagertoManagerto follow runtime behavior by @UnknownPlatypus in #2637django.template.autoreloadby @rafailmdzdv in #2638_UserTypeby @asottile in #2645.valueof a Choices variable by @asottile in #2644nullkeyword argument toManyToManyFieldinit by @lev-blit in #2648settings.AUTH_PASSWORD_VALIDATORSby @UnknownPlatypus in #2652django.httperrors by @UnknownPlatypus in #2654mysqlclientdeps to reveal mysql module stubtest errors by @UnknownPlatypus in #2656django.core.handlersby @UnknownPlatypus in #2660MediaDefiningClassby @UnknownPlatypus in #2662uvto manage dev dependencies by @UnknownPlatypus in #2698django.db.models.expressions.Expression.identityby @cjwatson in #2685assertFormErrorform arg type to BaseForm by @marxide in #2705LogEntryManager.log_actionsby @youtux in #2710New Contributors
Full Changelog: typeddjango/django-stubs@5.2.0...5.2.1
v5.2.0Compare Source
Important changes
mypy --strictmodemypyversion is updated to1.13What's Changed
format_lazytyping by @ashm-dev in #2504_Choicestype by @stianjensen in #2476context_dataattribute to _MonkeyPatchedW/ASGIResponse. by @PacificGilly in #2509type[Model]does not haveobjectsattribute" by @sobolevn in #2519db.migrations.operationsby @Viicos in #2349select_format()methods by @adamchainz in #2525django.conf.urlsby @adamchainz in #2528Func.functionby @adamchainz in #2529ClassVarannotations on mutableModelAdmintypes forruffby @zyv in #2524ClassVarannotations onMigrationclass attributes by @zyv in #2530Model.[a]save()signature change by @adamchainz in #2535@contextmanagerby @adamchainz in #2561_Choicestype for forms by @mrgalopes in #2565is_postgresql_*properties for Django 5.1 by @adamchainz in #2566db_table_commentto model meta by @ngnpope in #2571BaseModelAdmin.get_inlines()return type by @MaestroXXXVIII in #2576flattenandflatten_fieldsetsby @ngnpope in #2572__slotnames__by @adamchainz in #2584TypedModelMetafields by @ngnpope in #2594django.contrib.gis.geoip2stubs by @ngnpope in #2593django.core.validatorsfor Django 5.2 by @JaeHyuckSa in #2598django.test.clientanddjango.utilsfor Django 5.2 by @JaeHyuckSa in #2599django.contrib.auth.backendsfor Django 5.2 by @JaeHyuckSa in #2600django.contrib.auth.modelsfor Django 5.2 by @JaeHyuckSa in #2601MutableMappingforForm.Initialby @UnknownPlatypus in #2604django.contrib.adminfor Django 5.2 by @JaeHyuckSa in #2607django.db.models.sqlfor Django 5.2 by @JaeHyuckSa in #2606django.forms.widgetsfor Django 5.2 by @federicobond in #2608TypeAliases andTypeVars for "user" and "any user" by @terencehonles in #2384django.contribfor Django 5.2 by @JaeHyuckSa in #2611get_select2_languagefromdjango.contrib.admin.widgetsby @michalpokusa in #2612django.core.management.commandsfor Django 5.2 by @JaeHyuckSa in #2613<79.0.0forSETUPTOOLS_ENABLE_FEATURES=legacy-editableto work by @michalpokusa in #2617Optionsfields by @ngnpope in #2627__all__by @donBarbos in #2624django.http.request.MediaTypeby @sobolevn in #2631django.httpmodule by @sobolevn in #2632django.template.libraryby @sobolevn in #2633django.core.serializersfor Django 5.2 by @JaeHyuckSa in #2614New Contributors
Full Changelog: typeddjango/django-stubs@5.1.3...5.2.0
v5.1.3Compare Source
What's Changed
ContentTypemodel fields to be infered asAny, refs #2446 by @sobolevn in #2483@deprecatedbased on the review by @sobolevn in #2485null=TrueandAnytype param forFieldtypes by @sobolevn in #2492TestCase.assertJSON{Not,}Equalby @nickstenning in #2497New Contributors
Full Changelog: typeddjango/django-stubs@5.1.2...5.1.3
v5.1.2Compare Source
What's Changed
.values_listreturns incorrect type for field with same name when selected from related model by @Niicck in #2431ModelAdmin.construct_change_messageby @youtux in #2444contrib.admin.options.ModelAdminby @JaeHyuckSa in #2422contrib.gis.gdal.geometriesby @JaeHyuckSa in #2460contrib.admin.models.LogEntryManagerby @JaeHyuckSa in #2423New Contributors
Full Changelog: typeddjango/django-stubs@5.1.1...5.1.2
v5.1.1Compare Source
What's Changed
BaseEngine.app_dirnamenon-optional by @mthuurne in #2394(a)refresh_from_db()by @jacobtylerwalls in #2402from_string()andget_template()return backend-specific template by @mthuurne in #2400get_session_auth_fallback_hashmethod to the correct type by @JaeHyuckSa in #2407QuerySet.aliaslikeQuerySet.annotateby @andersk in #2411db.migrations.serializerby @JaeHyuckSa in #2421django.conf.global_settingsby [@JaeHyuckConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.