Update dependency django-stubs to v5
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
django-stubs (changelog) | dev | major |
^4.2 -> ^5.0.0
|
Release Notes
typeddjango/django-stubs (django-stubs)
v5.2.0
Important changes
- We now support Django@5.2 LTS release!
- Partial Django support is moved to 5.0 from 4.2
- We now also run all checks in this repo under
mypy --strict
mode - Minimal
mypy
version is updated to1.13
What's Changed
- fix
format_lazy
typing by @ashm-dev in https://github.com/typeddjango/django-stubs/pull/2504 - Update models's fields'
_Choices
type by @stianjensen in https://github.com/typeddjango/django-stubs/pull/2476 - fix: Add
context_data
attribute to _MonkeyPatchedW/ASGIResponse. by @PacificGilly in https://github.com/typeddjango/django-stubs/pull/2509 - Fix id and pk of AnonymousUser by @stickperson in https://github.com/typeddjango/django-stubs/pull/2515
- Add docs about "
type[Model]
does not haveobjects
attribute" by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2519 - Update
db.migrations.operations
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2349 - Add
select_format()
methods by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2525 - Tidy
django.conf.urls
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2528 - Fix
Func.function
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2529 - Add
ClassVar
annotations on mutableModelAdmin
types forruff
by @zyv in https://github.com/typeddjango/django-stubs/pull/2524 - Add
ClassVar
annotations onMigration
class attributes by @zyv in https://github.com/typeddjango/django-stubs/pull/2530 - Remove insecure password hashers by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2537
- Update for
Model.[a]save()
signature change by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2535 - Update TestCase classes for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2540
- Improve admin decorators by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2538
- Update for template system checks change by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2536
- Remove ForeignObjectRel.is_hidden() by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2539
- Correct Field.slice_expression() 'length' argument name. by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2548
- Update django.urls for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2546
- Update django.db.models.options.Options for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2545
- Add admin is_collapsible() methods by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2541
- Update django.template for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2543
- Add new system checks from Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2542
- Add full signatures to CheckConstraint.init overloads by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2544
- Make Model.[a]save() keyword-only by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2550
- Add query_params argument to test tools from Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2547
- fix #2552 by add ModelIterable to _need_generic by @lucemia in https://github.com/typeddjango/django-stubs/pull/2553
- Add window frame exclusion from Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2554
- Improve process_view() methods by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2556
- Update core.files.storages for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2558
- Update contrib.auth for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2555
- Complete JSONObject by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2560
- Fix FieldCacheMixin.cache_name by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2562
- Use AbstractContextManager instead of
@contextmanager
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2561 - Add ModelForm.declared_fields by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2557
- Update test.selenium for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2559
- Update database expressions for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2563
- fixed typing in contrib.auth.decorators by @Rusich90 in https://github.com/typeddjango/django-stubs/pull/2564
- Update
_Choices
type for forms by @mrgalopes in https://github.com/typeddjango/django-stubs/pull/2565 - Update some database backend attributes for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2567
- Update PostgreSQL backend
is_postgresql_*
properties for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2566 - Remove unused code from the plugin by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2570
- Add
db_table_comment
to model meta by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2571 - Fix
BaseModelAdmin.get_inlines()
return type by @MaestroXXXVIII in https://github.com/typeddjango/django-stubs/pull/2576 - Fix a few typos by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2579
- Document custom field typing by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2578
- Improve stubs for
flatten
andflatten_fieldsets
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2572 - Improve typing of choices by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2582
- Run tests in parallel by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2580
- Make GeneratedField parameter db_persist required by @JasonLovesDoggo in https://github.com/typeddjango/django-stubs/pull/2568
- Re-add explicit test cache disabling by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2589
- Ignore
__slotnames__
by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2584 - Update a bunch of stuff for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2585
- Add get_refs() to BaseExpression and WhereNode by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2586
- Update Django 4.2 LTS version to 4.2.20 by @intgr in https://github.com/typeddjango/django-stubs/pull/2592
- Allow tuples for some
TypedModelMeta
fields by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2594 - Update
django.contrib.gis.geoip2
stubs by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2593 - Update django to 5.2 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2596
- Fix django.urls.base.reverse after 5.2 by @simwr872 in https://github.com/typeddjango/django-stubs/pull/2595
- Update
django.core.validators
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2598 - Update
django.test.client
anddjango.utils
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2599 - Update
django.contrib.auth.backends
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2600 - Update
django.contrib.auth.models
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2601 - Allow
MutableMapping
forForm.Initial
by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/2604 - Update
django.contrib.admin
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2607 - Update
django.db.models.sql
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2606 - Update
django.forms.widgets
for Django 5.2 by @federicobond in https://github.com/typeddjango/django-stubs/pull/2608 - create and re-use
TypeAlias
es andTypeVar
s for "user" and "any user" by @terencehonles in https://github.com/typeddjango/django-stubs/pull/2384 - Update
django.contrib
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2611 - Add stub for
get_select2_language
fromdjango.contrib.admin.widgets
by @michalpokusa in https://github.com/typeddjango/django-stubs/pull/2612 - Update
django.core.management.commands
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2613 - Restrict setuptools to
<79.0.0
forSETUPTOOLS_ENABLE_FEATURES=legacy-editable
to work by @michalpokusa in https://github.com/typeddjango/django-stubs/pull/2617 - Add EmailMultiAlternatives.body_contains() by @cuu508 in https://github.com/typeddjango/django-stubs/pull/2618
- Add HttpResponse.text by @cuu508 in https://github.com/typeddjango/django-stubs/pull/2622
- Allow tuples for some
Options
fields by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2627 - Add
__all__
by @donBarbos in https://github.com/typeddjango/django-stubs/pull/2624 - Fix some django 5.2 new missing parameters by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2629
- [5.2] Improve
django.http.request.MediaType
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2631 - [5.2] Fix new errors in
django.http
module by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2632 - [5.2] Fix
django.template.library
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2633 - Update
django.core.serializers
for Django 5.2 by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2614 - Update contrib.gis for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2587
- Update some field attributes for Django 5.1 by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2583
New Contributors
- @stianjensen made their first contribution in https://github.com/typeddjango/django-stubs/pull/2476
- @PacificGilly made their first contribution in https://github.com/typeddjango/django-stubs/pull/2509
- @stickperson made their first contribution in https://github.com/typeddjango/django-stubs/pull/2515
- @zyv made their first contribution in https://github.com/typeddjango/django-stubs/pull/2524
- @lucemia made their first contribution in https://github.com/typeddjango/django-stubs/pull/2553
- @Rusich90 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2564
- @mrgalopes made their first contribution in https://github.com/typeddjango/django-stubs/pull/2565
- @MaestroXXXVIII made their first contribution in https://github.com/typeddjango/django-stubs/pull/2576
- @JasonLovesDoggo made their first contribution in https://github.com/typeddjango/django-stubs/pull/2568
- @simwr872 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2595
- @michalpokusa made their first contribution in https://github.com/typeddjango/django-stubs/pull/2612
- @donBarbos made their first contribution in https://github.com/typeddjango/django-stubs/pull/2624
Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.3...5.2.0
v5.1.3
What's Changed
- Support mypy@1.15 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2502
- Support Django@5.1.5 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2482
- Support Django@5.1.6 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2503
- Fix
ContentType
model fields to be infered asAny
, refs #2446 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2483 - Fix
@deprecated
based on the review by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2485 - Fix error with
null=True
andAny
type param forField
types by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2492 - Fix types for
TestCase.assertJSON{Not,}Equal
by @nickstenning in https://github.com/typeddjango/django-stubs/pull/2497 - DomainNameValidator types by @HansAarneLiblik in https://github.com/typeddjango/django-stubs/pull/2498
New Contributors
- @nickstenning made their first contribution in https://github.com/typeddjango/django-stubs/pull/2497
Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.2...5.1.3
v5.1.2
What's Changed
- Update enums to reflect typing spec changes by @hauntsaninja in https://github.com/typeddjango/django-stubs/pull/2426
- Document compatibility considerations by @khink in https://github.com/typeddjango/django-stubs/pull/2430
- fix
.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/2431 - Bump django to 5.1.3 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2436
- Fix typing of related manager methods by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2439
- Fix signature of
ModelAdmin.construct_change_message
by @youtux in https://github.com/typeddjango/django-stubs/pull/2444 - Update django to 5.1.4, drop black by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2455
- Extend _AllLimitChoicesTo by @H4rryK4ne in https://github.com/typeddjango/django-stubs/pull/2456
- Marking default_error_messages as a ClassVar by @delfick in https://github.com/typeddjango/django-stubs/pull/2457
- Add deprecated decorators for multiple classes and methods by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2458
- Update
contrib.admin.options.ModelAdmin
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2422 - Update
contrib.gis.gdal.geometries
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2460 - base.pyi: use base class HttpResponseBase by @dnet in https://github.com/typeddjango/django-stubs/pull/2459
- Update
contrib.admin.models.LogEntryManager
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2423 - Update mypy to 1.14 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2468
- Add py.typed file for pylance support by @ashwanthbalakrishnan5 in https://github.com/typeddjango/django-stubs/pull/2470
- Fix Signal._live_receivers typing by @mdalp in https://github.com/typeddjango/django-stubs/pull/2475
- Add type-checking to Manager.acreate by @vitosamson in https://github.com/typeddjango/django-stubs/pull/2477
New Contributors
- @hauntsaninja made their first contribution in https://github.com/typeddjango/django-stubs/pull/2426
- @khink made their first contribution in https://github.com/typeddjango/django-stubs/pull/2430
- @Niicck made their first contribution in https://github.com/typeddjango/django-stubs/pull/2431
- @youtux made their first contribution in https://github.com/typeddjango/django-stubs/pull/2444
- @H4rryK4ne made their first contribution in https://github.com/typeddjango/django-stubs/pull/2456
- @dnet made their first contribution in https://github.com/typeddjango/django-stubs/pull/2459
- @ashwanthbalakrishnan5 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2470
- @mdalp made their first contribution in https://github.com/typeddjango/django-stubs/pull/2475
- @vitosamson made their first contribution in https://github.com/typeddjango/django-stubs/pull/2477
Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.1...5.1.2
v5.1.1
What's Changed
- Add django 5.1 to the test matrix and add its classifier by @foarsitter in https://github.com/typeddjango/django-stubs/pull/2380
- fix function overload of Library.simple_tag by @asottile in https://github.com/typeddjango/django-stubs/pull/2390
- Fix resolve_error_handler return type by @ljodal in https://github.com/typeddjango/django-stubs/pull/2392
- Make
BaseEngine.app_dirname
non-optional by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2394 - [5.1] Add from_queryset param to
(a)refresh_from_db()
by @jacobtylerwalls in https://github.com/typeddjango/django-stubs/pull/2402 - Make
from_string()
andget_template()
return backend-specific template by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2400 - Update type of the
get_session_auth_fallback_hash
method to the correct type by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2407 - Fix TypedDictType crash with mypy 1.12.x by @federicobond in https://github.com/typeddjango/django-stubs/pull/2408
- Remove EOL Python 3.8 and add 3.13 to CI by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2397
- Treat
QuerySet.alias
likeQuerySet.annotate
by @andersk in https://github.com/typeddjango/django-stubs/pull/2411 - Fixes #2413 -- update ModelAdmin.log_FOO method signatures by @sergei-maertens in https://github.com/typeddjango/django-stubs/pull/2414
- Update
db.migrations.serializer
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2421 - Update
django.conf.global_settings
by @JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2420 - Allow
None
onview_on_site
by @nijel in https://github.com/typeddjango/django-stubs/pull/2419 - Version 5.1.1 release by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2424
New Contributors
- @foarsitter made their first contribution in https://github.com/typeddjango/django-stubs/pull/2380
- @sergei-maertens made their first contribution in https://github.com/typeddjango/django-stubs/pull/2414
- @nijel made their first contribution in https://github.com/typeddjango/django-stubs/pull/2419
Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.1.0...5.1.1
v5.1.0
Headline changes
- Refactor support for
annotate
to utilisemypy.types.Instance.extra_attrs
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2319 - Resolve configured
AUTH_USER_MODEL
with aget_type_analyze_hook
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2335
What's Changed
- Fix type hints for
SimpleTestCase
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2289 - Check correct model on m2m reverse values/values_list by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2288
- match Field TypeVar variance in models.fields.related by @asottile in https://github.com/typeddjango/django-stubs/pull/2292
- try and use named arguments from caller for matching name by @asottile in https://github.com/typeddjango/django-stubs/pull/2294
- Allow
fields
being anIterable
inbulk_update
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2296 - Test usage of
from_queryset
manager as reverse manager by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2295 - A workaround for #2299 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2300
- Run mypy with
--strict
onassert_type
tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2301 - Improve
get_context_object_name
onSingleObjectMixin
andMultipleObjectMixin
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2298 - Update pyright to 1.1.374 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2305
- Remove
BaseManager.cache
attribute by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2309 - Loosen bound on
CurrentSiteManager
manager type var by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2308 - Update build status link for
django-stubs-ext
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2310 - Use
Any
forConnectionProxy
attributes by @RealOrangeOne in https://github.com/typeddjango/django-stubs/pull/2311 - Remove
FieldDoesNotExist
from where it's not present at runtime by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2313 - Declare
ManyToManyField.description
a_StrOrPromise
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2312 - Don't populate a type arg for non generic managers by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2314
- Fixed bugs with RawQuerySet by @ashm-dev in https://github.com/typeddjango/django-stubs/pull/2316
- Add Typing for EmailField with Support for String Set and Get Types by @ashm-dev in https://github.com/typeddjango/django-stubs/pull/2317
- Do
models.Model
adjustments fromget_metaclass_hook
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2322 - Bump django from 5.0.7 to 5.0.8 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2325
- This MR adds some defaults to stubs with
stubdefaulter
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2326 - Add a lot of runtime defaults to stubs with
stubdefaulter
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2327 - Fix
tuple[A]
types to betuple[A, ...]
types by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2328 - Check annotated fields in
<QuerySet>.filter
call by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2332 - Refactor: Unify plugin check for model type info by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2286
- Enable
mypy.plugins.proper_plugin
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2333 - Use mypy's
make_optional_type
instead of shipping our own by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2334 - Add arbitrary named arguments to @receiver decorator by @craigds in https://github.com/typeddjango/django-stubs/pull/2342
- Bump django from 5.0.8 to 5.1 by @Viicos in https://github.com/typeddjango/django-stubs/pull/2347
- Don't modify return values of manager methods in place, modify a copy instead by @jkaikkosplk in https://github.com/typeddjango/django-stubs/pull/2345
- [5.1] Add slicing notation to F expressions by @Viicos in https://github.com/typeddjango/django-stubs/pull/1897
- 5.1: Deprecate CheckConstraint.check by @q0w in https://github.com/typeddjango/django-stubs/pull/2331
- feat: Add missing stubs by @BradleyKirton in https://github.com/typeddjango/django-stubs/pull/2348
- Update
utils
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2352 - Update
contrib.sessions.backends
by @Viicos in https://github.com/typeddjango/django-stubs/pull/2351 - Update django to 5.1.1 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2360
- Allow None return form model Field.formfield() by @adamchainz in https://github.com/typeddjango/django-stubs/pull/2363
- add cache_name for django 5.1 by @asottile in https://github.com/typeddjango/django-stubs/pull/2365
- Update Django 4.2 LTS version to 4.2.16 by @intgr in https://github.com/typeddjango/django-stubs/pull/2369
- Document the release process by @intgr in https://github.com/typeddjango/django-stubs/pull/2371
- Allow lookups on
.annotate
fields by @sterliakov in https://github.com/typeddjango/django-stubs/pull/2376 - Break what apparently is a cycle involving custom User model and
QuerySet.as_manager()
by @sterliakov in https://github.com/typeddjango/django-stubs/pull/2377 - Version 5.1.0 release by @richardebeling in https://github.com/typeddjango/django-stubs/pull/2374
New Contributors
- @RealOrangeOne made their first contribution in https://github.com/typeddjango/django-stubs/pull/2311
- @ashm-dev made their first contribution in https://github.com/typeddjango/django-stubs/pull/2316
- @craigds made their first contribution in https://github.com/typeddjango/django-stubs/pull/2342
- @jkaikkosplk made their first contribution in https://github.com/typeddjango/django-stubs/pull/2345
- @BradleyKirton made their first contribution in https://github.com/typeddjango/django-stubs/pull/2348
- @richardebeling made their first contribution in https://github.com/typeddjango/django-stubs/pull/2374
Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.4...5.1.0
v5.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
Release notes for version 5.0.3
What's Changed
- Release workflow: publish
django-stubs-ext
beforedjango-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
andModel._get_pk_val
methods by @YPCrumble in https://github.com/typeddjango/django-stubs/pull/2177 -
Lookup
should be a subtype ofExpression
by @mkurnikov in https://github.com/typeddjango/django-stubs/pull/2199 - Update
django.db.models.functions
: allowCombinable
as parameter, addRound
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 - Tests: Migrate
db/models/test_constraints.yml
to 'assert_type' tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2204 - Allow any function for admin's
display
andaction
decorators by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2210 - Remove invalid re-export
django.forms.ChoiceWidget
by @asottile in https://github.com/typeddjango/django-stubs/pull/2207 - 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
- Add missing math.Random database function by @noamkush in https://github.com/typeddjango/django-stubs/pull/2222
- 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
- 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 inMultipleObjectMixin
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
- walk mro for Field set type annotations by @asottile in https://github.com/typeddjango/django-stubs/pull/2244
- Add
serialized_aliases
parameter tosetup_databases
function indjango.test.utils
by @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2247 - 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 todjango.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
- 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 allowStreamingHttpResponse
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 - Support inheriting ManyToManyField from an abstract model by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2260
- 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
- add
Path
type argument to tuple returned byget_app_template_dirs
by @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2266 - add missing type argument to
Paginator
by @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2271 - 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
- 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
v5.0.3
What's Changed
- Release workflow: publish
django-stubs-ext
beforedjango-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
andModel._get_pk_val
methods by @YPCrumble in https://github.com/typeddjango/django-stubs/pull/2177 -
Lookup
should be a subtype ofExpression
by @mkurnikov in https://github.com/typeddjango/django-stubs/pull/2199 - Update
django.db.models.functions
: allowCombinable
as parameter, addRound
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 - Tests: Migrate
db/models/test_constraints.yml
to 'assert_type' tests by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2204 - Allow any function for admin's
display
andaction
decorators by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2210 - Remove invalid re-export
django.forms.ChoiceWidget
by @asottile in https://github.com/typeddjango/django-stubs/pull/2207 - 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
- Add missing math.Random database function by @noamkush in https://github.com/typeddjango/django-stubs/pull/2222
- 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
- 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 inMultipleObjectMixin
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
- walk mro for Field set type annotations by @asottile in https://github.com/typeddjango/django-stubs/pull/2244
- Add
serialized_aliases
parameter tosetup_databases
function indjango.test.utils
by @DongwookKim0823 in https://github.com/typeddjango/django-stubs/pull/2247 - 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 todjango.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
- 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 allowStreamingHttpResponse
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 - Support inheriting ManyToManyField from an abstract model by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2260
- 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
- add
Path
type argument to tuple returned byget_app_template_dirs
by @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2266 - add missing type argument to
Paginator
by @joshuadavidthomas in https://github.com/typeddjango/django-stubs/pull/2271 - 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
- 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
v5.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 to5.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
Release notes for version 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
andValuesQuerySet
can now be replaced with simpleQuerySet
by @intgr in https://github.com/typeddjango/django-stubs/pull/2104
What's Changed
- 5.0: Update
django.contrib.admin.views
anddjango.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
anddjango.contrib.gis.admin.options
by @saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2116 - 5.0: Update
django.forms.boundfield
anddjango.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
: Relaxuser_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
indjango.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
: addgenerated
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, runpyright
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
v5.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
andValuesQuerySet
can now be replaced with simpleQuerySet
by @intgr in https://github.com/typeddjango/django-stubs/pull/2104
What's Changed
- 5.0: Update
django.contrib.admin.views
anddjango.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
anddjango.contrib.gis.admin.options
by @saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2116 - 5.0: Update
django.forms.boundfield
anddjango.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
: Relaxuser_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
indjango.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
: addgenerated
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, runpyright
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
v5.0.0
Announcements
-
QuerySet
class no longer derives fromCollection
. If you run into errors likeincompatible type "_QuerySet[User, User]"; expected "Collection[User]"
, please read this announcement.
Headline changes
- Remove incorrect
Collection
base class and__contains__
method fromQuerySet
by @fidoriel in https://github.com/typeddjango/django-stubs/pull/1925 - Pyright joins the workflow in an advisory capacity by @jorenham in https://github.com/typeddjango/django-stubs/pull/2019
- feat: Allow setting django_settings_module from env by @armanckeser in https://github.com/typeddjango/django-stubs/pull/2021
- Add
ManyRelatedManager.through
attribute and generic type parameter by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2026
What's Changed
- Make
StrPromise
not inherit fromSequence[str]
by @intgr in https://github.com/typeddjango/django-stubs/pull/1841 - Update and prepare for Django 5.0 by @intgr in https://github.com/typeddjango/django-stubs/pull/1859
- Ensure mypy plugin processes inherited many to many fields by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1864
- Include ModelBase subclasses in plugin base class hook condition by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1863
- [5.0] Added many new a-prefixed asynchronous methods by @bigfootjon in https://github.com/typeddjango/django-stubs/pull/1741
- Remove section regarding custom queryset methods from README by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1865
- Fix type of
AppConfig.models_module
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1866 - Allow
None
in settingsMIGRATION_MODULES
dict values by @asottile in https://github.com/typeddjango/django-stubs/pull/1871 - Add type hints for
JSONField.from_db_value
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1879 - Fix/pyright unknown by @dephiros in https://github.com/typeddjango/django-stubs/pull/1873
- Fix type hints of
converters
inurls.resolvers
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1892 - Update mypy to 1.8.0 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1885
- Add
@type_check_only
to all Protocols and known stubs-only classes by @intgr in https://github.com/typeddjango/django-stubs/pull/1894 - Fix types for UniqueConstraint instantiation by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1880
- Add
ModuleType
as a possible type toURLResolver.urlconf_name
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1891 - Fix type hint of
URLPattern.default_args
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1895 - Update ruff and silence
PYI046
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1907 - Use PEP 570 syntax by @Viicos in https://github.com/typeddjango/django-stubs/pull/1908
- Fix readme settings example by @Viicos in https://github.com/typeddjango/django-stubs/pull/1910
- Fix type hint of
EmailBackend.ssl_keyfile
andEmailBackend.ssl_certfile
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1911 - Add type of
django.VERSION
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1916 - Added
CommandParser
tocommands.__init__
by @jamesbraza in https://github.com/typeddjango/django-stubs/pull/1927 - [5.0] add
assume_scheme
to forms.URLField by @asottile in https://github.com/typeddjango/django-stubs/pull/1929 - Fix return type of
BaseModelAdmin.formfield_for_dbfield
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1934 - Revert
pre-commit==3.6.1
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1936 - Fix type hint of
Response.set_cookie.max_age
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1941 - 5.0: Add ChoicesType by @q0w in https://github.com/typeddjango/django-stubs/pull/1942
- Add through_defaults for RelatedManager methods by @mfosterw in https://github.com/typeddjango/django-stubs/pull/1943
- Update type hints of
core.signing
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1945 - [5.0] Update
core.validators
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1947 - [5.0] Update
core.paginator
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1946 - Generic
forms.ModelChoiceField
by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1889 - Support processing of other relations and fields when one is broken by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1877
- Allowing
set
inmodel_to_dict
'sexclude
by @jamesbraza in https://github.com/typeddjango/django-stubs/pull/1952 - [5.0] Add django.db.models.GeneratedField by @palfrey in https://github.com/typeddjango/django-stubs/pull/1944
- Fix type hint of
BaseEngine.template_dirs
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1954 - Update type hints of contrib.auth.hashers by @yhay81 in https://github.com/typeddjango/django-stubs/pull/1955
- deps: Upgrade pre-commit for newer versions of python by @delfick in https://github.com/typeddjango/django-stubs/pull/1961
- 5.0: Add auth.middleware.auser by @q0w in https://github.com/typeddjango/django-stubs/pull/1966
- 5.0: Add ModelAdmin.show_facets by @q0w in https://github.com/typeddjango/django-stubs/pull/1967
- ruff: Fix config warnings by @q0w in https://github.com/typeddjango/django-stubs/pull/1964
- 5.0: Add BaseConstraint.violation_error_code by @q0w in https://github.com/typeddjango/django-stubs/pull/1969
- 5.0: Add Signal.asend and Signal.asend_robust by @q0w in https://github.com/typeddjango/django-stubs/pull/1965
- 5.0: Add QuerySet.(a)update_or_create new create_defaults arg by @q0w in https://github.com/typeddjango/django-stubs/pull/1970
- 5.0: Add AdminSite.get_log_entries by @q0w in https://github.com/typeddjango/django-stubs/pull/1963
- 5.0: Add gis ClosestPoint by @q0w in https://github.com/typeddjango/django-stubs/pull/1968
- 5.0: Rename save_existing arg instance to obj by @q0w in https://github.com/typeddjango/django-stubs/pull/1971
- 5.0: Remove admin.helpers.checkbox by @q0w in https://github.com/typeddjango/django-stubs/pull/1972
- 5.0: Change annotation_select_mask from set[str] to list[str] by @q0w in https://github.com/typeddjango/django-stubs/pull/1973
- fixup: Pass violation_error_code to init by @q0w in https://github.com/typeddjango/django-stubs/pull/1975
- Avoid returning None from get_field_related_model_cls by @SingingTree in https://github.com/typeddjango/django-stubs/pull/1956
- 5.0: Pass positional args name and violation_error_message to BaseConstraint by @q0w in https://github.com/typeddjango/django-stubs/pull/1974
- 5.0: Remove pytz support by @q0w in https://github.com/typeddjango/django-stubs/pull/1980
- 5.0: Remove global setting USE_L10N by @q0w in https://github.com/typeddjango/django-stubs/pull/1979
- 5.0: Remove OSMGeoAdmin, GeoModelAdmin by @q0w in https://github.com/typeddjango/django-stubs/pull/1981
- 5.0: Remove extra_tests arg for DiscoverRunner.build_suite/run_tests by @q0w in https://github.com/typeddjango/django-stubs/pull/1978
- 5.0: Remove django.utils baseconv and datetime_safe modules by @q0w in https://github.com/typeddjango/django-stubs/pull/1977
- 5.0: Add request arg to ModelAdmin.lookup_allowed by @q0w in https://github.com/typeddjango/django-stubs/pull/1976
- Add URL converter protocol type by @adamchainz in https://github.com/typeddjango/django-stubs/pull/1984
- Fix type annotation for RegisterLookupMixin.class_lookups by @avoronov-box in https://github.com/typeddjango/django-stubs/pull/1962
- Update django to 5.0.3 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1990
- Remove some deprecated Django 3.x APIs by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1991
- Fix BaseModelAdmin.view_on_site annotation by @cuu508 in https://github.com/typeddjango/django-stubs/pull/1993
- Allow immutable
extra_context
onTemplateView
s by @samueljsb in https://github.com/typeddjango/django-stubs/pull/1994 - Add BoundField.html() by @pelme in https://github.com/typeddjango/django-stubs/pull/1999
- Allow timedelta type for session.set_expiry() argument by @mlazar-endear in https://github.com/typeddjango/django-stubs/pull/2001
- Bump
pytest-mypy-plugins
to 3.1.1 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2003 - Update mypy, add a bit more metadata by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1997
- 5.0: Update
django.contrib.auth
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2009 - 5.0: Update
django.conf
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2008 - 5.0: Update
django.views
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2007 - 5.0: Update
django.test
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2005 - 5.0: Update
django.utils
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2006 - Specify d.c.serializers.base.DeserializedObject.object type by @j00bar in https://github.com/typeddjango/django-stubs/pull/2010
- Clean the cache on each run of
stubtest
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2015 - Keep abstract Django models internally in the plugin by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2017
- Add GitHub actions release workflow by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1950
- Adding missing
Q
methods:check()
,flatten()
by @Alexerson in https://github.com/typeddjango/django-stubs/pull/1899 - Improve types in
utils.termcolors
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1901 - Set the calculated metaclass when creating type info in the plugin by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2025
- Do not annotate MRs with pyright by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2023
- Use
PRI_MYPY
inget_additional_deps
hook by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2024 - Update
_default_manager
and_base_manager
to beManager
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2022 - Determine the type of queryset methods on unions by @delfick in https://github.com/typeddjango/django-stubs/pull/2027
- Add first stub for get_model_admin by @nebiyuelias1 in https://github.com/typeddjango/django-stubs/pull/2029
- 5.0: Update
django.contrib.admin
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2004 - [5.0] Update
core.files
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1949 - [5.0] Update
core.cache.backends
, addRedisCache
and related classes by @Viicos in https://github.com/typeddjango/django-stubs/pull/1948 - Fix
AsyncClient.defaults
attribute typing by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1878 - Relax type for
fields
argument ofModel.refresh_from_db()
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2035 - [5.0] Add missing stubs for geos by @nebiyuelias1 in https://github.com/typeddjango/django-stubs/pull/2034
- Make
AdminSite.get_model_admin
generic by @Viicos in https://github.com/typeddjango/django-stubs/pull/2038 - [5.0] Add
db_default=
parameter to modelsField
classes by @Skorpyon in https://github.com/typeddjango/django-stubs/pull/1876 - Remove
class Meta
fromModel
andForm
class stubs by @jorenham in https://github.com/typeddjango/django-stubs/pull/2000 - Add datetime.timedelta as valid type for HttpRequest.get_signed_cookie() max_age argument. by @pelme in https://github.com/typeddjango/django-stubs/pull/2045
- CI: Update Django 4.2 version used for test suite by @intgr in https://github.com/typeddjango/django-stubs/pull/2049
- Refine return type for
ManyToOneRel.get_accessor_name()
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2052 - Add
DeferredAttribute.__get__()
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2050 - Add missing methods and superclass to
FieldFile
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2051 - Add
db_comment=
parameter to Postgres and GIS model fields by @saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2054 - Correct type for
db.models.sql.query.Query.join()
argument by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2055 - 5.0: Update
django.db.backends.oracle.base
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2057 - 5.0: Update
django.test.client
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2059 - 5.0: Update
django.test.html
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2060 - 5.0: Update
django.test.runner
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2061 - 5.0: Update
django.template
,django.templatetags
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2063 - 5.0: Update
django.test.testcases
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2062 - 5.0: Update
django.http
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2064 - 5.0: Update
django.core.management
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2067 - 5.0: Update
django.core.handlers
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2066 - 5.0: Update
django.contrib.sessions.serializers
,django.core.serializers
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2068 - Update django app related types by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2071
- Add a
returncode
attribute toCommandError
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2072 - Disable mypy
ignore_missing_imports
option by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2058 - fix typing for URL validator.call by @asottile in https://github.com/typeddjango/django-stubs/pull/2074
- Use field generic types for descriptors by @md384 in https://github.com/typeddjango/django-stubs/pull/2048
- 5.0: Update
django.core.servers.basehttp
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2070 - Update
django.template.base.Template.render()
argument type by @Majsvaffla in https://github.com/typeddjango/django-stubs/pull/1160 - 5.0: Add
django.utils.choices
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2075 - 5.0: Update
django.contrib.sitemaps
,django.contrib.staticfiles
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2076 - Update pyright report options (
reportMissingTypeArgument
,reportPrivateUsage
) by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2077 - 5.0: Update
django.contrib.postgres
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2078 - Add
path
signature for async views by @jlost in https://github.com/typeddjango/django-stubs/pull/2085 - Remove incorrect
Reversible
base class fromQuerySet
by @intgr in https://github.com/typeddjango/django-stubs/pull/2094 - Version 5.0.0 release (django-stubs, django-stubs-ext) by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2087
New Contributors
- @Viicos made their first contribution in https://github.com/typeddjango/django-stubs/pull/1866
- @dephiros made their first contribution in https://github.com/typeddjango/django-stubs/pull/1873
- @jamesbraza made their first contribution in https://github.com/typeddjango/django-stubs/pull/1927
- @mfosterw made their first contribution in https://github.com/typeddjango/django-stubs/pull/1943
- @palfrey made their first contribution in https://github.com/typeddjango/django-stubs/pull/1944
- @yhay81 made their first contribution in https://github.com/typeddjango/django-stubs/pull/1955
- @delfick made their first contribution in https://github.com/typeddjango/django-stubs/pull/1961
- @SingingTree made their first contribution in https://github.com/typeddjango/django-stubs/pull/1956
- @avoronov-box made their first contribution in https://github.com/typeddjango/django-stubs/pull/1962
- @cuu508 made their first contribution in https://github.com/typeddjango/django-stubs/pull/1993
- @samueljsb made their first contribution in https://github.com/typeddjango/django-stubs/pull/1994
- @pelme made their first contribution in https://github.com/typeddjango/django-stubs/pull/1999
- @mlazar-endear made their first contribution in https://github.com/typeddjango/django-stubs/pull/2001
- @j00bar made their first contribution in https://github.com/typeddjango/django-stubs/pull/2010
- @jorenham made their first contribution in https://github.com/typeddjango/django-stubs/pull/2019
- @fidoriel made their first contribution in https://github.com/typeddjango/django-stubs/pull/1925
- @armanckeser made their first contribution in https://github.com/typeddjango/django-stubs/pull/2021
- @nebiyuelias1 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2029
- @Skorpyon made their first contribution in https://github.com/typeddjango/django-stubs/pull/1876
- @saJaeHyukc made their first contribution in https://github.com/typeddjango/django-stubs/pull/2054
- @sudosubin made their first contribution in https://github.com/typeddjango/django-stubs/pull/2057
- @md384 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2048
- @Majsvaffla made their first contribution in https://github.com/typeddjango/django-stubs/pull/1160
- @jlost made their first contribution in https://github.com/typeddjango/django-stubs/pull/2085
Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.7...5.0.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.