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.3
Release Notes
typeddjango/django-stubs (django-stubs)
v5.2.0
Compare Source
Important changes
mypy --strict
modemypy
version is updated to1.13
What's Changed
format_lazy
typing by @ashm-dev in https://github.com/typeddjango/django-stubs/pull/2504_Choices
type by @stianjensen in https://github.com/typeddjango/django-stubs/pull/2476context_data
attribute to _MonkeyPatchedW/ASGIResponse. by @PacificGilly in https://github.com/typeddjango/django-stubs/pull/2509type[Model]
does not haveobjects
attribute" by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2519db.migrations.operations
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2349select_format()
methods by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2525django.conf.urls
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2528Func.function
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2529ClassVar
annotations on mutableModelAdmin
types forruff
by @zyv in https://github.com/typeddjango/django-stubs/pull/2524ClassVar
annotations onMigration
class 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@contextmanager
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2561_Choices
type 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_comment
to 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/2576flatten
andflatten_fieldsets
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2572__slotnames__
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2584TypedModelMeta
fields by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2594django.contrib.gis.geoip2
stubs by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2593django.core.validators
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2598django.test.client
anddjango.utils
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2599django.contrib.auth.backends
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2600django.contrib.auth.models
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2601MutableMapping
forForm.Initial
by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2604django.contrib.admin
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2607django.db.models.sql
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2606django.forms.widgets
for Django 5.2 by @federicobond in https://github.com/typeddjango/django-stubs/pull/2608TypeAlias
es andTypeVar
s for "user" and "any user" by @terencehonles in https://github.com/typeddjango/django-stubs/pull/2384django.contrib
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2611get_select2_language
fromdjango.contrib.admin.widgets
by @michalpokusa in https://github.com/typeddjango/django-stubs/pull/2612django.core.management.commands
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2613<79.0.0
forSETUPTOOLS_ENABLE_FEATURES=legacy-editable
to work by @michalpokusa in https://github.com/typeddjango/django-stubs/pull/2617Options
fields 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.MediaType
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2631django.http
module by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2632django.template.library
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2633django.core.serializers
for 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.3
Compare Source
What's Changed
ContentType
model fields to be infered asAny
, refs #2446 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2483@deprecated
based on the review by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2485null=True
andAny
type param forField
types by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2492TestCase.assertJSON{Not,}Equal
by @nickstenning in https://github.com/typeddjango/django-stubs/pull/2497New Contributors
Full Changelog: typeddjango/django-stubs@5.1.2...5.1.3
v5.1.2
Compare Source
What's Changed
.values_list
returns 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_message
by @youtux in https://github.com/typeddjango/django-stubs/pull/2444contrib.admin.options.ModelAdmin
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2422contrib.gis.gdal.geometries
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2460contrib.admin.models.LogEntryManager
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2423New Contributors
Full Changelog: typeddjango/django-stubs@5.1.1...5.1.2
v5.1.1
Compare Source
What's Changed
BaseEngine.app_dirname
non-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_hash
method to the correct type by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2407QuerySet.alias
likeQuerySet.annotate
by @andersk in https://github.com/typeddjango/django-stubs/pull/2411db.migrations.serializer
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2421django.conf.global_settings
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2420None
onview_on_site
by @nijel in https://github.com/typeddjango/django-stubs/pull/2419New Contributors
Full Changelog: typeddjango/django-stubs@5.1.0...5.1.1
v5.1.0
Compare Source
Headline changes
annotate
to utilisemypy.types.Instance.extra_attrs
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2319AUTH_USER_MODEL
with aget_type_analyze_hook
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2335What's Changed
SimpleTestCase
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2289fields
being anIterable
inbulk_update
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2296from_queryset
manager as reverse manager by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2295--strict
onassert_type
tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2301get_context_object_name
onSingleObjectMixin
andMultipleObjectMixin
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2298BaseManager.cache
attribute by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2309CurrentSiteManager
manager type var by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2308django-stubs-ext
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2310Any
forConnectionProxy
attributes by @RealOrangeOne in https://github.com/typeddjango/django-stubs/pull/2311FieldDoesNotExist
from where it's not present at runtime by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2313ManyToManyField.description
a_StrOrPromise
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2312models.Model
adjustments fromget_metaclass_hook
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2322stubdefaulter
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2326stubdefaulter
by @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>.filter
call by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2332mypy.plugins.proper_plugin
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2333make_optional_type
instead of shipping our own by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2334utils
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2352contrib.sessions.backends
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2351.annotate
fields 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.4
Compare Source
What's Changed
This is a re-release of django-stubs
5.0.3
with 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-ext
beforedjango-stubs
by @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_name
andModel._get_pk_val
methods by @YPCrumble in https://github.com/typeddjango/django-stubs/pull/2177Lookup
should be a subtype ofExpression
by @mkurnikov in https://github.com/typeddjango/django-stubs/pull/2199django.db.models.functions
: allowCombinable
as parameter, addRound
function by @noamkush in https://github.com/typeddjango/django-stubs/pull/2195django.core.management.utils
functions by @Viicos in https://github.com/typeddjango/django-stubs/pull/2200django.middleware
stubs by @Viicos in https://github.com/typeddjango/django-stubs/pull/2202django.http
stubs by @Viicos in https://github.com/typeddjango/django-stubs/pull/2201db/models/test_constraints.yml
to 'assert_type' tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2204display
andaction
decorators by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2210django.forms.ChoiceWidget
by @asottile in https://github.com/typeddjango/django-stubs/pull/2207ReverseManyToOneDescriptor
generic over a model by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2227QuerySet
for multiple defaults inMultipleObjectMixin
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2191objects
annotation by @asottile in https://github.com/typeddjango/django-stubs/pull/2241serialized_aliases
parameter tosetup_databases
function indjango.test.utils
by @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2247ConnectionProxy
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2246get_template_tag_modules
function signature todjango.template.backends.django
by @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2250django.db.models.sql.Query
class by @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2253admin.sites._ViewType
bound to allowStreamingHttpResponse
by @savanto in https://github.com/typeddjango/django-stubs/pull/2256Options._get_fields
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2254Path
type argument to tuple returned byget_app_template_dirs
by @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2266Paginator
by @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2271ManyToManyField
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/22755.0.3
by @flaeppe in [https://github.com/Prepare for a release5.0.3
typeddjango/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.