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:
>=4.2.7,<4.3->>=5.2,<5.3Release Notes
typeddjango/django-stubs (django-stubs)
v5.2.0Compare Source
Important changes
mypy --strictmodemypyversion is updated to1.13What's Changed
format_lazytyping by @ashm-dev in https://github.com/typeddjango/django-stubs/pull/2504_Choicestype by @stianjensen in https://github.com/typeddjango/django-stubs/pull/2476context_dataattribute to _MonkeyPatchedW/ASGIResponse. by @PacificGilly in https://github.com/typeddjango/django-stubs/pull/2509type[Model]does not haveobjectsattribute" by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2519db.migrations.operationsby @Viicos in https://github.com/typeddjango/django-stubs/pull/2349select_format()methods by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2525django.conf.urlsby @adamchainz in https://github.com/typeddjango/django-stubs/pull/2528Func.functionby @adamchainz in https://github.com/typeddjango/django-stubs/pull/2529ClassVarannotations on mutableModelAdmintypes forruffby @zyv in https://github.com/typeddjango/django-stubs/pull/2524ClassVarannotations onMigrationclass attributes by @zyv in https://github.com/typeddjango/django-stubs/pull/2530Model.[a]save()signature change by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2535@contextmanagerby @adamchainz in https://github.com/typeddjango/django-stubs/pull/2561_Choicestype for forms by @mrgalopes in https://github.com/typeddjango/django-stubs/pull/2565is_postgresql_*properties for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2566db_table_commentto model meta by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2571BaseModelAdmin.get_inlines()return type by @MaestroXXXVIII in https://github.com/typeddjango/django-stubs/pull/2576flattenandflatten_fieldsetsby @ngnpope in https://github.com/typeddjango/django-stubs/pull/2572__slotnames__by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2584TypedModelMetafields by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2594django.contrib.gis.geoip2stubs by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2593django.core.validatorsfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2598django.test.clientanddjango.utilsfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2599django.contrib.auth.backendsfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2600django.contrib.auth.modelsfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2601MutableMappingforForm.Initialby @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2604django.contrib.adminfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2607django.db.models.sqlfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2606django.forms.widgetsfor Django 5.2 by @federicobond in https://github.com/typeddjango/django-stubs/pull/2608TypeAliases andTypeVars for "user" and "any user" by @terencehonles in https://github.com/typeddjango/django-stubs/pull/2384django.contribfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2611get_select2_languagefromdjango.contrib.admin.widgetsby @michalpokusa in https://github.com/typeddjango/django-stubs/pull/2612django.core.management.commandsfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2613<79.0.0forSETUPTOOLS_ENABLE_FEATURES=legacy-editableto work by @michalpokusa in https://github.com/typeddjango/django-stubs/pull/2617Optionsfields by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2627__all__by @donBarbos in https://github.com/typeddjango/django-stubs/pull/2624django.http.request.MediaTypeby @sobolevn in https://github.com/typeddjango/django-stubs/pull/2631django.httpmodule by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2632django.template.libraryby @sobolevn in https://github.com/typeddjango/django-stubs/pull/2633django.core.serializersfor Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/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 https://github.com/typeddjango/django-stubs/pull/2483@deprecatedbased on the review by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2485null=TrueandAnytype param forFieldtypes by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2492TestCase.assertJSON{Not,}Equalby @nickstenning in https://github.com/typeddjango/django-stubs/pull/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 https://github.com/typeddjango/django-stubs/pull/2431ModelAdmin.construct_change_messageby @youtux in https://github.com/typeddjango/django-stubs/pull/2444contrib.admin.options.ModelAdminby @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2422contrib.gis.gdal.geometriesby @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2460contrib.admin.models.LogEntryManagerby @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/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 https://github.com/typeddjango/django-stubs/pull/2394(a)refresh_from_db()by @jacobtylerwalls in https://github.com/typeddjango/django-stubs/pull/2402from_string()andget_template()return backend-specific template by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2400get_session_auth_fallback_hashmethod to the correct type by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2407QuerySet.aliaslikeQuerySet.annotateby @andersk in https://github.com/typeddjango/django-stubs/pull/2411db.migrations.serializerby @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2421django.conf.global_settingsby @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2420Noneonview_on_siteby @nijel in https://github.com/typeddjango/django-stubs/pull/2419New Contributors
Full Changelog: typeddjango/django-stubs@5.1.0...5.1.1
v5.1.0Compare Source
Headline changes
annotateto utilisemypy.types.Instance.extra_attrsby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2319AUTH_USER_MODELwith aget_type_analyze_hookby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2335What's Changed
SimpleTestCaseby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2289fieldsbeing anIterableinbulk_updateby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2296from_querysetmanager as reverse manager by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2295--strictonassert_typetests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2301get_context_object_nameonSingleObjectMixinandMultipleObjectMixinby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2298BaseManager.cacheattribute by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2309CurrentSiteManagermanager type var by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2308django-stubs-extby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2310AnyforConnectionProxyattributes by @RealOrangeOne in https://github.com/typeddjango/django-stubs/pull/2311FieldDoesNotExistfrom where it's not present at runtime by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2313ManyToManyField.descriptiona_StrOrPromiseby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2312models.Modeladjustments fromget_metaclass_hookby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2322stubdefaulterby @sobolevn in https://github.com/typeddjango/django-stubs/pull/2326stubdefaulterby @sobolevn in https://github.com/typeddjango/django-stubs/pull/2327tuple[A]types to betuple[A, ...]types by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2328<QuerySet>.filtercall by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2332mypy.plugins.proper_pluginby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2333make_optional_typeinstead of shipping our own by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2334utilsby @Viicos in https://github.com/typeddjango/django-stubs/pull/2352contrib.sessions.backendsby @Viicos in https://github.com/typeddjango/django-stubs/pull/2351.annotatefields by @sterliakov in https://github.com/typeddjango/django-stubs/pull/2376QuerySet.as_manager()by @sterliakov in https://github.com/typeddjango/django-stubs/pull/2377New Contributors
Full Changelog: typeddjango/django-stubs@5.0.4...5.1.0
v5.0.4Compare Source
What's Changed
This is a re-release of django-stubs
5.0.3with a minor fix:Full Changelog: typeddjango/django-stubs@5.0.3...5.0.4
Release notes for version 5.0.3
What's Changed
django-stubs-extbeforedjango-stubsby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2188apps/test_config.yml'assert_type' tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2190ManyToManyField.m2m_field_nameandModel._get_pk_valmethods by @YPCrumble in https://github.com/typeddjango/django-stubs/pull/2177Lookupshould be a subtype ofExpressionby @mkurnikov in https://github.com/typeddjango/django-stubs/pull/2199django.db.models.functions: allowCombinableas parameter, addRoundfunction by @noamkush in https://github.com/typeddjango/django-stubs/pull/2195django.core.management.utilsfunctions by @Viicos in https://github.com/typeddjango/django-stubs/pull/2200django.middlewarestubs by @Viicos in https://github.com/typeddjango/django-stubs/pull/2202django.httpstubs by @Viicos in https://github.com/typeddjango/django-stubs/pull/2201db/models/test_constraints.ymlto 'assert_type' tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2204displayandactiondecorators by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2210django.forms.ChoiceWidgetby @asottile in https://github.com/typeddjango/django-stubs/pull/2207ReverseManyToOneDescriptorgeneric over a model by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2227QuerySetfor multiple defaults inMultipleObjectMixinby @flaeppe in https://github.com/typeddjango/django-stubs/pull/2191objectsannotation by @asottile in https://github.com/typeddjango/django-stubs/pull/2241serialized_aliasesparameter tosetup_databasesfunction indjango.test.utilsby @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2247ConnectionProxyby @Viicos in https://github.com/typeddjango/django-stubs/pull/2246get_template_tag_modulesfunction signature todjango.template.backends.djangoby @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2250django.db.models.sql.Queryclass by @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2253admin.sites._ViewTypebound to allowStreamingHttpResponseby @savanto in https://github.com/typeddjango/django-stubs/pull/2256Options._get_fieldsby @Viicos in https://github.com/typeddjango/django-stubs/pull/2254Pathtype argument to tuple returned byget_app_template_dirsby @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2266Paginatorby @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2271ManyToManyFieldby @flaeppe in https://github.com/typeddjango/django-stubs/pull/22755.0.3by @flaeppe in [https://github.com/Prepare for a release5.0.3typeddjango/django-stubs#2274](https://redirect.github.com/typeddjangConfiguration
📅 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 has been generated by Renovate Bot.