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