chore(deps): update dependency django-stubs to v5 #3006
Merged
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:
>=1.14.0,<5
->>=1.14.0,<6
Release Notes
typeddjango/django-stubs (django-stubs)
v5.0.0
Compare Source
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
Collection
base class and__contains__
method fromQuerySet
by @fidoriel in https://github.com/typeddjango/django-stubs/pull/1925ManyRelatedManager.through
attribute and generic type parameter by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2026What's Changed
StrPromise
not inherit fromSequence[str]
by @intgr in https://github.com/typeddjango/django-stubs/pull/1841AppConfig.models_module
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1866None
in settingsMIGRATION_MODULES
dict values by @asottile in https://github.com/typeddjango/django-stubs/pull/1871JSONField.from_db_value
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1879converters
inurls.resolvers
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1892@type_check_only
to all Protocols and known stubs-only classes by @intgr in https://github.com/typeddjango/django-stubs/pull/1894ModuleType
as a possible type toURLResolver.urlconf_name
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1891URLPattern.default_args
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1895PYI046
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1907EmailBackend.ssl_keyfile
andEmailBackend.ssl_certfile
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1911django.VERSION
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1916CommandParser
tocommands.__init__
by @jamesbraza in https://github.com/typeddjango/django-stubs/pull/1927assume_scheme
to forms.URLField by @asottile in https://github.com/typeddjango/django-stubs/pull/1929BaseModelAdmin.formfield_for_dbfield
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1934pre-commit==3.6.1
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/1936Response.set_cookie.max_age
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1941core.signing
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1945core.validators
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1947core.paginator
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1946forms.ModelChoiceField
by @UnknownPlatypus in https://github.com/typeddjango/django-stubs/pull/1889set
inmodel_to_dict
'sexclude
by @jamesbraza in https://github.com/typeddjango/django-stubs/pull/1952BaseEngine.template_dirs
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1954extra_context
onTemplateView
s by @samueljsb in https://github.com/typeddjango/django-stubs/pull/1994pytest-mypy-plugins
to 3.1.1 by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2003django.contrib.auth
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2009django.conf
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2008django.views
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2007django.test
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2005django.utils
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2006stubtest
by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2015Q
methods:check()
,flatten()
by @Alexerson in https://github.com/typeddjango/django-stubs/pull/1899utils.termcolors
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1901PRI_MYPY
inget_additional_deps
hook by @sobolevn in https://github.com/typeddjango/django-stubs/pull/2024_default_manager
and_base_manager
to beManager
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2022django.contrib.admin
by @ngnpope in https://github.com/typeddjango/django-stubs/pull/2004core.files
by @Viicos in https://github.com/typeddjango/django-stubs/pull/1949core.cache.backends
, addRedisCache
and related classes by @Viicos in https://github.com/typeddjango/django-stubs/pull/1948AsyncClient.defaults
attribute typing by @flaeppe in https://github.com/typeddjango/django-stubs/pull/1878fields
argument ofModel.refresh_from_db()
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2035AdminSite.get_model_admin
generic by @Viicos in https://github.com/typeddjango/django-stubs/pull/2038db_default=
parameter to modelsField
classes by @Skorpyon in https://github.com/typeddjango/django-stubs/pull/1876class Meta
fromModel
andForm
class stubs by @jorenham in https://github.com/typeddjango/django-stubs/pull/2000ManyToOneRel.get_accessor_name()
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2052DeferredAttribute.__get__()
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2050FieldFile
by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2051db_comment=
parameter to Postgres and GIS model fields by @saJaeHyukc in https://github.com/typeddjango/django-stubs/pull/2054db.models.sql.query.Query.join()
argument by @mthuurne in https://github.com/typeddjango/django-stubs/pull/2055django.db.backends.oracle.base
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2057django.test.client
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2059django.test.html
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2060django.test.runner
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2061django.template
,django.templatetags
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2063django.test.testcases
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2062django.http
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2064django.core.management
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2067django.core.handlers
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2066django.contrib.sessions.serializers
,django.core.serializers
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2068returncode
attribute toCommandError
by @flaeppe in https://github.com/typeddjango/django-stubs/pull/2072ignore_missing_imports
option by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2058django.core.servers.basehttp
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2070django.template.base.Template.render()
argument type by @Majsvaffla in https://github.com/typeddjango/django-stubs/pull/1160django.utils.choices
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2075django.contrib.sitemaps
,django.contrib.staticfiles
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2076reportMissingTypeArgument
,reportPrivateUsage
) by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2077django.contrib.postgres
by @sudosubin in https://github.com/typeddjango/django-stubs/pull/2078path
signature for async views by @jlost in https://github.com/typeddjango/django-stubs/pull/2085Reversible
base class fromQuerySet
by @intgr in https://github.com/typeddjango/django-stubs/pull/2094New Contributors
Full Changelog: typeddjango/django-stubs@4.2.7...5.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.