chore(deps): update dependency django-stubs to v4.2.7 #187
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.2.3
->4.2.7
Release Notes
typeddjango/django-stubs (django-stubs)
v4.2.7
Compare Source
Headline changes
ManyToManyField
andModel.<manytomany>.through
RelatedManager
orManyRelatedManager
, update those to django-stubs-ext:from django_stubs_ext.db.models.manager import ManyRelatedManager, RelatedManager
@cached_property
properties with class variables or@property
properties.Plugin improvements
ManyToManyDescriptor
and fixedModel.<manytomany>.through
typing by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1805Self
-typed custom queryset methods to be compatible withQuerySet
by @moranabadie in https://github.com/typeddjango/django-stubs/pull/1852django-stubs-ext
RelatedManager
,ManyRelatedManager
stub-only classes by @intgr in https://github.com/typeddjango/django-stubs/pull/1834TypedModelMeta
ordering
attribute to allowOrderBy
objects by @HansAarneLiblik in https://github.com/typeddjango/django-stubs/pull/1847Stubs fixes
search_help_text=
parameter toChangeList.__init__()
by @quinox in https://github.com/typeddjango/django-stubs/pull/1801migrations.RunSQL()
by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1803SuccessMessageMixin.form_valid()
by @SukiCZ in https://github.com/typeddjango/django-stubs/pull/1812db_comment=
parameter position fordjango.db.models.Field.__init__()
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1815RelatedField.__init__()
method and removedForeignObject.__init__(db_constraint=)
parameter in Field constructors by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1816assertNumQueries()
andassertQuerySetEqual()
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1823get_deleted_objects()
return fromlist[Model]
->list[str]
by @golgor in https://github.com/typeddjango/django-stubs/pull/1825django.db.models
re-exports by @intgr in https://github.com/typeddjango/django-stubs/pull/1835TemplateResponse.cookies
attribute andSimpleCookie
type by @apollo13 in https://github.com/typeddjango/django-stubs/pull/1702Stubs improvements
django.contrib.postgres.expressions
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1765django.contrib.gis.gdal.libgdal
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1811@deconstructible
as a mixin class by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1818django.db.models.enums.*
modules by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1819BaseExpression.contains_subquery()
method (update to Django 4.2.7) by @intgr in https://github.com/typeddjango/django-stubs/pull/1827QuerySet
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1822Collector
andNestedObjects
attributes, methods by @intgr in https://github.com/typeddjango/django-stubs/pull/1826django.db.models.functions.MD5()
database function by @kevinmarsh in https://github.com/typeddjango/django-stubs/pull/1830BaseModelAdmin
attributes to be either list or tuple by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1832BaseModelAdmin
methods to return either list or tuple by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1833capfirst()
None
return by @intgr in https://github.com/typeddjango/django-stubs/pull/1842django.core.management.commands
modules by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1829Model._do_update()
method signature by @pfouque in https://github.com/typeddjango/django-stubs/pull/1854Stubs improvements: @cached_property
functools.cached_property
definition instead of defining our own by @intgr in https://github.com/typeddjango/django-stubs/pull/1771@property
attributes to@cached_property
part 1 by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1761@property
attributes to@cached_property
part 2 by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1768output_field
to@cached_property
orClassVar
and improves type by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1769Housekeeping
<Model>_RelatedManager
entries to allowlist by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1806RelatedManager
todjango.db.models.fields.related_descriptors
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1814RelatedManager
,ManyRelatedManager
to inherit fromManager
notBaseManager
by @intgr in https://github.com/typeddjango/django-stubs/pull/1843New Contributors
Full Changelog: typeddjango/django-stubs@4.2.6...4.2.7
v4.2.6
Compare Source
Headline changes
Fixed several bugs in version 4.2.5. Thanks to everyone for contributing fixes on a short order!
Removed direct mypy dependency. If you are using mypy, please add an explicit
mypy
dev dependency to your project, or install django-stubs with the extradjango-stubs[compatible-mypy]
.Mypy remains the only supported type checker. Improvements for other type checkers may be considered in the future, pull requests welcome. See #1628 for details.
Plugin fixes
as_manager()
andfrom_queryset()
when combined withSelf
types (#1788) by @moranabadie in https://github.com/typeddjango/django-stubs/pull/1789from_queryset()
of custom Manager subclass by @moranabadie in https://github.com/typeddjango/django-stubs/pull/1786parse_bool
implementation from mypy" by @intgr in https://github.com/typeddjango/django-stubs/pull/1792(Turns out this was not necessary and will be reverted)
Stubs fixes
Field.formfield()
,GeometryField.formfield()
method arguments by @brianhelba in https://github.com/typeddjango/django-stubs/pull/1778Stubs improvements
django.core.management
modules by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1787django.db.backend.base
modules by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1791Housekeeping
Full Changelog: typeddjango/django-stubs@4.2.5...4.2.6
v4.2.5
Compare Source
Headline changes
mypy 1.6: Recommended mypy version updated to 1.6.x
Next django-stubs version (4.2.6) will remove direct mypy dependency. If you are using mypy, please add an explicit
mypy
dev dependency to your project, or install django-stubs with the extradjango-stubs[compatible-mypy]
.Mypy remains the only supported type checker. Improvements for other type checkers may be considered in the future, pull requests welcome. See #1628 for details.
Officially added Python 3.12 support
Stubs fixes
default_storage
produce aStorage
object by @brianhelba in https://github.com/typeddjango/django-stubs/pull/1665SyndicationFeed
methods by @WhyNotHugo in https://github.com/typeddjango/django-stubs/pull/1705Migration.operations
attribute by @asottile in https://github.com/typeddjango/django-stubs/pull/1707Migration
list attributes by @brianhelba in https://github.com/typeddjango/django-stubs/pull/1710bases=
parameter inCreateModel
migration op to allow for mixins by @asottile in https://github.com/typeddjango/django-stubs/pull/1708_Composable
protocol for compatibility withpsycopg2-stubs
change by @andersk in https://github.com/typeddjango/django-stubs/pull/1714django.views
modules by @GabDug in https://github.com/typeddjango/django-stubs/pull/1716null
andvalidators
arguments fromManyToManyField.__init__
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1720django.test
modules by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1752BaseModelForm
,ErrorList
,ErrorDict
constructorrenderer=
parameter by @GabDug in https://github.com/typeddjango/django-stubs/pull/1690Stubs improvements
deconstruct
methods by @brianhelba in https://github.com/typeddjango/django-stubs/pull/1695SQLCompiler
methods by @ashm-tech in https://github.com/typeddjango/django-stubs/pull/1689max_length
attribute toforms.FileField
by @GabDug in https://github.com/typeddjango/django-stubs/pull/1715Layer.num_feat
attribute (GeoDjango) by @niconoe in https://github.com/typeddjango/django-stubs/pull/1722AbstractBaseUser.REQUIRED_FIELDS
asClassVar
by @WhyNotHugo in https://github.com/typeddjango/django-stubs/pull/1737fields.Field.formfield()
method by @WhyNotHugo in https://github.com/typeddjango/django-stubs/pull/1739ModelStateFieldsCacheDescriptor.__get__
method by @asottile in https://github.com/typeddjango/django-stubs/pull/1743Model._meta
toClassVar[Options[Self]]
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1732django.test.signals
types by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1751@cached_property
decorated method by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1766psycopg2.sql.SQL
inQuerySet.raw()
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1767django.middleware.csrf
module by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1770django.core.cache
modules by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1774Field.formfield()
,GeometryField.formfield()
methods by @brianhelba in https://github.com/typeddjango/django-stubs/pull/1724F.resolve_expression()
return type by @schinckel in https://github.com/typeddjango/django-stubs/pull/1659Plugin improvements
Manager
methods through manager MRO by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1701functools.cached_property
instead of Django's in mypy plugin by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1721ReverseOneToOneDescriptor
and start using it by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1733ManyToManyField
'sthrough
model by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1719settings.AUTH_USER_MODEL
used asto=
in relation by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1746_default_manager
symbol to generatedthrough
model by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1745Plugin crash fixes
Fixes some
AssertionError
crashes.Fixes some
AssertionError
crashes.Fixes some
ValueError
crashes.Documentation
django_stubs_ext
by @tony in https://github.com/typeddjango/django-stubs/pull/1747 & https://github.com/typeddjango/django-stubs/pull/1748Housekeeping
deconstruct
methods. by @brianhelba in https://github.com/typeddjango/django-stubs/pull/1693 & https://github.com/typeddjango/django-stubs/pull/1694parse_bool
implementation from mypy by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1703# type: ignore
comments for plugin code by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1726# type: ignore
comments in stubs files by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1734Manager.from_queryset()
handles invalid argument types by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1731New Contributors
Full Changelog: typeddjango/django-stubs@4.2.4...4.2.5
v4.2.4
Compare Source
Most important changes:
1.5.*
support and update[compatible-mypy]
extra to use1.5.*
.4.2.5
(and all prior versions of4.2
).django_stubs_ext/
folder was renamed to be justext/
, it should not affect users (unless you install it from git)objects
attribute to be present on generic Model classes. As per the django documentation, code working with generic models should use the_default_manager
attribute instead.This time there is no corresponding release of
django-stubs-ext
.Plugin changes
ClassVar
s https://github.com/typeddjango/django-stubs/pull/1672 @flaeppeThanks a lot to all contributors and maintainers! 🎉
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.