Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update django-stubs to 5.1.0 #368

Closed
wants to merge 1 commit into from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates django-stubs from 5.0.0 to 5.1.0.

Changelog

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 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

5.0.3

What's Changed
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2189
* Release workflow: publish `django-stubs-ext` before `django-stubs` by flaeppe in https://github.com/typeddjango/django-stubs/pull/2188
* Migrate `apps/test_config.yml` 'assert_type' tests by flaeppe in https://github.com/typeddjango/django-stubs/pull/2190
* Add `ManyToManyField.m2m_field_name` and `Model._get_pk_val` methods by YPCrumble in https://github.com/typeddjango/django-stubs/pull/2177
* Bump pyright from 1.1.364 to 1.1.365 by dependabot in https://github.com/typeddjango/django-stubs/pull/2197
* `Lookup` should be a subtype of `Expression` by mkurnikov in https://github.com/typeddjango/django-stubs/pull/2199
* Update `django.db.models.functions`: allow `Combinable` as parameter, add `Round` function by noamkush in https://github.com/typeddjango/django-stubs/pull/2195
* Add missing `django.core.management.utils` functions by Viicos in https://github.com/typeddjango/django-stubs/pull/2200
* Improve `django.middleware` stubs by Viicos in https://github.com/typeddjango/django-stubs/pull/2202
* Improve `django.http` stubs by Viicos in https://github.com/typeddjango/django-stubs/pull/2201
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2203
* Bump pytest from 8.2.1 to 8.2.2 by dependabot in https://github.com/typeddjango/django-stubs/pull/2206
* Tests: Migrate `db/models/test_constraints.yml` to 'assert_type' tests by flaeppe in https://github.com/typeddjango/django-stubs/pull/2204
* Bump pyright from 1.1.365 to 1.1.366 by dependabot in https://github.com/typeddjango/django-stubs/pull/2208
* Allow any function for admin's `display` and `action` decorators by flaeppe in https://github.com/typeddjango/django-stubs/pull/2210
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2215
* Remove invalid re-export `django.forms.ChoiceWidget` by asottile in https://github.com/typeddjango/django-stubs/pull/2207
* Bump pyright from 1.1.366 to 1.1.367 by dependabot in https://github.com/typeddjango/django-stubs/pull/2217
* Model._meta.pk is non-None by asottile in https://github.com/typeddjango/django-stubs/pull/2218
* update / create defaults are read-only Mapping by asottile in https://github.com/typeddjango/django-stubs/pull/2216
* Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 by dependabot in https://github.com/typeddjango/django-stubs/pull/2221
* Add missing math.Random database function by noamkush in https://github.com/typeddjango/django-stubs/pull/2222
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2223
* Bump pyright from 1.1.367 to 1.1.368 by dependabot in https://github.com/typeddjango/django-stubs/pull/2225
* Make `ReverseManyToOneDescriptor` generic over a model by flaeppe in https://github.com/typeddjango/django-stubs/pull/2227
* Extract through table creation to separate method by flaeppe in https://github.com/typeddjango/django-stubs/pull/2229
* Do many related manager creation during semantic analysis by flaeppe in https://github.com/typeddjango/django-stubs/pull/2231
* Bump mypy from 1.10.0 to 1.10.1 by dependabot in https://github.com/typeddjango/django-stubs/pull/2235
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2234
* Bump pyright from 1.1.368 to 1.1.369 by dependabot in https://github.com/typeddjango/django-stubs/pull/2237
* Expand CheckRegistry.register as function (2232) by jwhitlock in https://github.com/typeddjango/django-stubs/pull/2233
* don't copy magic or private methods in from_queryset managers by asottile in https://github.com/typeddjango/django-stubs/pull/2240
* Make plugin handle explicitly declared reverse descriptors for FKs by flaeppe in https://github.com/typeddjango/django-stubs/pull/2230
* Expect a `QuerySet` for multiple defaults in `MultipleObjectMixin` by flaeppe in https://github.com/typeddjango/django-stubs/pull/2191
* fix handling of explicit `objects` annotation by asottile in https://github.com/typeddjango/django-stubs/pull/2241
* Add atomic_blocks to base DB wrapper by palfrey in https://github.com/typeddjango/django-stubs/pull/2242
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2245
* walk mro for Field set type annotations by asottile in https://github.com/typeddjango/django-stubs/pull/2244
* Add `serialized_aliases` parameter to `setup_databases` function in `django.test.utils` by DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2247
* Bump pyright from 1.1.369 to 1.1.370 by dependabot in https://github.com/typeddjango/django-stubs/pull/2249
* use field annotations for values_list types by asottile in https://github.com/typeddjango/django-stubs/pull/2248
* Improve types of `ConnectionProxy` by Viicos in https://github.com/typeddjango/django-stubs/pull/2246
* Add `get_template_tag_modules` function signature to `django.template.backends.django` by DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2250
* add PlaceholderNode when deferring manager class hook by asottile in https://github.com/typeddjango/django-stubs/pull/2228
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2255
* Update function signatures for `django.db.models.sql.Query` class by DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2253
* Update `admin.sites._ViewType` bound to allow `StreamingHttpResponse` by savanto in https://github.com/typeddjango/django-stubs/pull/2256
* Add `Options._get_fields` by Viicos in https://github.com/typeddjango/django-stubs/pull/2254
* Bump pyright from 1.1.370 to 1.1.371 by dependabot in https://github.com/typeddjango/django-stubs/pull/2258
* Support inheriting ManyToManyField from an abstract model by flaeppe in https://github.com/typeddjango/django-stubs/pull/2260
* Bump django from 5.0.6 to 5.0.7 by dependabot in https://github.com/typeddjango/django-stubs/pull/2257
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2262
* Allow single generic param for Field in ForeignKey by rafonseca in https://github.com/typeddjango/django-stubs/pull/2261
* Refactor: Unify plugin check for model type info by flaeppe in https://github.com/typeddjango/django-stubs/pull/2263
* Bump pyright from 1.1.371 to 1.1.372 by dependabot in https://github.com/typeddjango/django-stubs/pull/2264
* add `Path` type argument to tuple returned by `get_app_template_dirs` by joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2266
* Bump pytest from 8.2.2 to 8.3.1 by dependabot in https://github.com/typeddjango/django-stubs/pull/2268
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2270
* add missing type argument to `Paginator` by joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2271
* Bump pyright from 1.1.372 to 1.1.373 by dependabot in https://github.com/typeddjango/django-stubs/pull/2273
* Update mypy to 1.11.0 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2269
* Check calls to filtering manager methods involving `ManyToManyField` by flaeppe in https://github.com/typeddjango/django-stubs/pull/2275
* Prepare for a release `5.0.3` by flaeppe in https://github.com/typeddjango/django-stubs/pull/2274
* lookup manager type via mro by asottile in https://github.com/typeddjango/django-stubs/pull/2276
* Bump pytest from 8.3.1 to 8.3.2 by dependabot in https://github.com/typeddjango/django-stubs/pull/2278
* Check model fields on filtering methods of queryset types by flaeppe in https://github.com/typeddjango/django-stubs/pull/2277
* fill QuerySet generics using the manager's model type by asottile in https://github.com/typeddjango/django-stubs/pull/2281
* convert as_manager hooks to base class hook by asottile in https://github.com/typeddjango/django-stubs/pull/2282

New Contributors
* YPCrumble made their first contribution in https://github.com/typeddjango/django-stubs/pull/2177
* jwhitlock made their first contribution in https://github.com/typeddjango/django-stubs/pull/2233
* DongwookKim0823 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2247
* savanto made their first contribution in https://github.com/typeddjango/django-stubs/pull/2256
* rafonseca made their first contribution in https://github.com/typeddjango/django-stubs/pull/2261
* 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

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 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

5.0.1

Headline changes

* Support for Django 4.1 have been dropped by sobolevn in https://github.com/typeddjango/django-stubs/pull/2133
* A new extra, `django-stubs[oracle]`, was added by 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 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 sudosubin in https://github.com/typeddjango/django-stubs/pull/2079
* Fix IndexError for custom queryset managers by meshy in https://github.com/typeddjango/django-stubs/pull/1913
* 5.0: Update `django.db.models.lookups` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2103
* 5.0: Update `django.db.backends.utils` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2102
* 5.0: Update `django.forms.field.Field` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2107
* 5.0: Update `django.contrib.messages.storage.cookie` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2106
* Tests: Add test case for settings import cycle by intgr in https://github.com/typeddjango/django-stubs/pull/2098
* 5.0: Update `django.db.models.expressions` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2110
* 5.0: Update `django.contrib.auth.backends` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2111
* 5.0: Update `django.contrib.auth.base_user` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2113
* 5.0: Update `django.db.migrations.serializer` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2109
* 5.0: Update `django.db.backends.base.features.BaseDatabaseFeature` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2099
* 5.0: Update `django.db.backends.base.operations.BaseDatabaseOperations` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2100
* Fix annotation for `request.auser` by 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 saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2116
* 5.0: Update `django.forms.boundfield` and `django.forms.utils` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2118
* Prepare django-stubs-ext for QuerySet typevar refactor by intgr in https://github.com/typeddjango/django-stubs/pull/2117
* `BaseBackend.get_user`: Relax `user_id` param type by tony in https://github.com/typeddjango/django-stubs/pull/2121
* 5.0: Update `django.forms.renderers` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2119
* 5.0: Update `django.forms.forms` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2122
* 5.0: Update `django.contrib.gis.db.backends.sqatialite.schema` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2123
* Improve types in DB backend `schema` modules by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2124
* 5.0: Update `django.contrib.messages.test` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2126
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2129
* More pre-commit checks by sobolevn in https://github.com/typeddjango/django-stubs/pull/2132
* Bump django from 5.0.5 to 5.0.6 by dependabot in https://github.com/typeddjango/django-stubs/pull/2135
* 5.0: Update `django.contrib.contenttypes.prefetch` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2115
* 5.0: Update `django.contrib.admin.widgets` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2105
* 5.0: Update `django.contrib.contenttypes.fields.GenericForeignKey` methods by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2137
* Relax typing of `backend` in `django.contrib.auth` (`ModelBackend` -> `BaseBackend`) by tony in https://github.com/typeddjango/django-stubs/pull/2141
* fix: UserAdmin accepts AbstractUser by vadimshvetsov in https://github.com/typeddjango/django-stubs/pull/2139
* 4.2.8: Update `Query.resolve_lookup_value()` parameters by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2136
* Increase priority of mypy internal Django settings import by intgr in https://github.com/typeddjango/django-stubs/pull/2127
* Fix 'Import cycle from Django settings module' errors function context by intgr in https://github.com/typeddjango/django-stubs/pull/2142
* Adjust priority of Django settings import again by intgr in https://github.com/typeddjango/django-stubs/pull/2143
* 5.0: Update `django.forms.models` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2146
* Add typing of `django.db.migrations.autodetector` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2149
* 5.0: Update `django.db.models.enums` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2148
* 5.0: Update `django.forms.widgets` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2147
* Add GitHub actions release workflow for `django-stubs-ext` by flaeppe in https://github.com/typeddjango/django-stubs/pull/2150
* 5.0: Update `django.db.models.field.related` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2151
* Bump pre-commit from 3.7.0 to 3.7.1 by dependabot in https://github.com/typeddjango/django-stubs/pull/2155
* Fix `TextChoices.__new__()` parameter type by mvaled in https://github.com/typeddjango/django-stubs/pull/2156
* Ensure ManyToManyField related managers supports renamed imports by flaeppe in https://github.com/typeddjango/django-stubs/pull/2153
* 5.0: Update `django.contrib.gis.db.backends.postgis.operations` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2138
* 5.0: Update `django.db.models.fields.reverse_related` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2158
* 5.0: Update `django.db.models.field`: add `generated` attribute to model fields by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2152
* 5.0: Update `django.db.models.sql.datastructures` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2159
* 5.0: Update `django.db.models.query` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2160
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/typeddjango/django-stubs/pull/2161
* 5.0: Update `django.db.models.sql.compiler` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2166
* 5.0: Update `django.db.models.functions.datetime` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2167
* 5.0: Update `django.forms.formsets` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2145
* 5.0: Update `django.db.models.query_utils` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2165
* Bump pytest from 8.2.0 to 8.2.1 by dependabot in https://github.com/typeddjango/django-stubs/pull/2169
* 5.0: Update `django.db.models.functions.datetime.Now` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2173
* 5.0: Update `django.db.models.sql.query.Query` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2172
* 5.0: Update `django.db.models.field.related_descriptors` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2157
* 5.0: Update django.db.models.constraints.UniqueConstraint by steve148 in https://github.com/typeddjango/django-stubs/pull/2175
* 5.0: Update `django.db.models.expressions` by saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2176
* Add `BaseConstraint.get_violation_error_message()` by q0w in https://github.com/typeddjango/django-stubs/pull/2178
* Fix signature of Choices member creation, add `assert_type` test cases, run `pyright` by Viicos in https://github.com/typeddjango/django-stubs/pull/2162
* `AbstractBaseSession`: Use model fields for subclassed cases by tony in https://github.com/typeddjango/django-stubs/pull/2180
* Migrate 'test_conf.yml' to 'assert_type' tests by flaeppe in https://github.com/typeddjango/django-stubs/pull/2182
* Don't crash when inspecting classes loaded from cache by flaeppe in https://github.com/typeddjango/django-stubs/pull/2185
* Formset get_queryset() returns QuerySet by MrkGrgsn in https://github.com/typeddjango/django-stubs/pull/2174
* Prepare for a release `5.0.1` by flaeppe in https://github.com/typeddjango/django-stubs/pull/2183

New Contributors
* meshy made their first contribution in https://github.com/typeddjango/django-stubs/pull/1913
* bshelkhonov made their first contribution in https://github.com/typeddjango/django-stubs/pull/2108
* vadimshvetsov made their first contribution in https://github.com/typeddjango/django-stubs/pull/2139
* mvaled made their first contribution in https://github.com/typeddjango/django-stubs/pull/2156
* 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
Links

@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #372

@pyup-bot pyup-bot closed this Oct 26, 2024
@alanjds alanjds deleted the pyup-update-django-stubs-5.0.0-to-5.1.0 branch October 26, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant