5.0.0 #2096
intgr
announced in
Announcements
5.0.0
#2096
Replies: 1 comment 3 replies
-
please find a way to not ping everyone for the next one! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 Remove incorrectCollection
base class and__contains__
method fromQuerySet
#1925ManyRelatedManager.through
attribute and generic type parameter by @flaeppe in AddManyRelatedManager.through
attribute and generic type parameter #2026What's Changed
StrPromise
not inherit fromSequence[str]
by @intgr in MakeStrPromise
not inherit fromSequence[str]
#1841AppConfig.models_module
by @Viicos in Fix type ofAppConfig.models_module
#1866None
in settingsMIGRATION_MODULES
dict values by @asottile in AllowNone
in settingsMIGRATION_MODULES
dict values #1871JSONField.from_db_value
by @flaeppe in Add type hints forJSONField.from_db_value
#1879converters
inurls.resolvers
by @Viicos in Fix type hints ofconverters
inurls.resolvers
#1892@type_check_only
to all Protocols and known stubs-only classes by @intgr in Add@type_check_only
to all Protocols and known stubs-only classes #1894ModuleType
as a possible type toURLResolver.urlconf_name
by @Viicos in AddModuleType
as a possible type toURLResolver.urlconf_name
#1891URLPattern.default_args
by @Viicos in Fix type hint ofURLPattern.default_args
#1895PYI046
by @sobolevn in Update ruff and silencePYI046
#1907EmailBackend.ssl_keyfile
andEmailBackend.ssl_certfile
by @Viicos in Fix type hint ofEmailBackend.ssl_keyfile
andEmailBackend.ssl_certfile
#1911django.VERSION
by @Viicos in Add type ofdjango.VERSION
#1916CommandParser
tocommands.__init__
by @jamesbraza in AddedCommandParser
tocommands.__init__
#1927assume_scheme
to forms.URLField by @asottile in [5.0] addassume_scheme
to forms.URLField #1929BaseModelAdmin.formfield_for_dbfield
by @Viicos in Fix return type ofBaseModelAdmin.formfield_for_dbfield
#1934pre-commit==3.6.1
by @sobolevn in Revertpre-commit==3.6.1
#1936Response.set_cookie.max_age
by @Viicos in Fix type hint ofResponse.set_cookie.max_age
#1941core.signing
by @Viicos in Update type hints ofcore.signing
#1945core.validators
by @Viicos in [5.0] Updatecore.validators
#1947core.paginator
by @Viicos in [5.0] Updatecore.paginator
#1946forms.ModelChoiceField
by @UnknownPlatypus in Genericforms.ModelChoiceField
#1889set
inmodel_to_dict
'sexclude
by @jamesbraza in Allowingset
inmodel_to_dict
'sexclude
#1952BaseEngine.template_dirs
by @Viicos in Fix type hint ofBaseEngine.template_dirs
#1954extra_context
onTemplateView
s by @samueljsb in Allow immutableextra_context
onTemplateView
s #1994pytest-mypy-plugins
to 3.1.1 by @sobolevn in Bumppytest-mypy-plugins
to 3.1.1 #2003django.contrib.auth
by @ngnpope in 5.0: Updatedjango.contrib.auth
#2009django.conf
by @ngnpope in 5.0: Updatedjango.conf
#2008django.views
by @ngnpope in 5.0: Updatedjango.views
#2007django.test
by @ngnpope in 5.0: Updatedjango.test
#2005django.utils
by @ngnpope in 5.0: Updatedjango.utils
#2006stubtest
by @sobolevn in Clean the cache on each run ofstubtest
#2015Q
methods:check()
,flatten()
by @Alexerson in Adding missingQ
methods:check()
,flatten()
#1899utils.termcolors
by @Viicos in Improve types inutils.termcolors
#1901PRI_MYPY
inget_additional_deps
hook by @sobolevn in UsePRI_MYPY
inget_additional_deps
hook #2024_default_manager
and_base_manager
to beManager
by @flaeppe in Update_default_manager
and_base_manager
to beManager
#2022django.contrib.admin
by @ngnpope in 5.0: Updatedjango.contrib.admin
#2004core.files
by @Viicos in [5.0] Updatecore.files
#1949core.cache.backends
, addRedisCache
and related classes by @Viicos in [5.0] Updatecore.cache.backends
, addRedisCache
and related classes #1948AsyncClient.defaults
attribute typing by @flaeppe in FixAsyncClient.defaults
attribute typing #1878fields
argument ofModel.refresh_from_db()
by @mthuurne in Relax type forfields
argument ofModel.refresh_from_db()
#2035AdminSite.get_model_admin
generic by @Viicos in MakeAdminSite.get_model_admin
generic #2038db_default=
parameter to modelsField
classes by @Skorpyon in [5.0] Adddb_default=
parameter to modelsField
classes #1876class Meta
fromModel
andForm
class stubs by @jorenham in Removeclass Meta
fromModel
andForm
class stubs #2000ManyToOneRel.get_accessor_name()
by @mthuurne in Refine return type forManyToOneRel.get_accessor_name()
#2052DeferredAttribute.__get__()
by @mthuurne in AddDeferredAttribute.__get__()
#2050FieldFile
by @mthuurne in Add missing methods and superclass toFieldFile
#2051db_comment=
parameter to Postgres and GIS model fields by @saJaeHyukc in Adddb_comment=
parameter to Postgres and GIS model fields #2054db.models.sql.query.Query.join()
argument by @mthuurne in Correct type fordb.models.sql.query.Query.join()
argument #2055django.db.backends.oracle.base
by @sudosubin in 5.0: Updatedjango.db.backends.oracle.base
#2057django.test.client
by @sudosubin in 5.0: Updatedjango.test.client
#2059django.test.html
by @sudosubin in 5.0: Updatedjango.test.html
#2060django.test.runner
by @sudosubin in 5.0: Updatedjango.test.runner
#2061django.template
,django.templatetags
by @sudosubin in 5.0: Updatedjango.template
,django.templatetags
#2063django.test.testcases
by @sudosubin in 5.0: Updatedjango.test.testcases
#2062django.http
by @sudosubin in 5.0: Updatedjango.http
#2064django.core.management
by @sudosubin in 5.0: Updatedjango.core.management
#2067django.core.handlers
by @sudosubin in 5.0: Updatedjango.core.handlers
#2066django.contrib.sessions.serializers
,django.core.serializers
by @sudosubin in 5.0: Updatedjango.contrib.sessions.serializers
,django.core.serializers
#2068returncode
attribute toCommandError
by @flaeppe in Add areturncode
attribute toCommandError
#2072ignore_missing_imports
option by @sudosubin in Disable mypyignore_missing_imports
option #2058django.core.servers.basehttp
by @sudosubin in 5.0: Updatedjango.core.servers.basehttp
#2070django.template.base.Template.render()
argument type by @Majsvaffla in Updatedjango.template.base.Template.render()
argument type #1160django.utils.choices
by @sudosubin in 5.0: Adddjango.utils.choices
#2075django.contrib.sitemaps
,django.contrib.staticfiles
by @sudosubin in 5.0: Updatedjango.contrib.sitemaps
,django.contrib.staticfiles
#2076reportMissingTypeArgument
,reportPrivateUsage
) by @sudosubin in Update pyright report options (reportMissingTypeArgument
,reportPrivateUsage
) #2077django.contrib.postgres
by @sudosubin in 5.0: Updatedjango.contrib.postgres
#2078path
signature for async views by @jlost in Addpath
signature for async views #2085Reversible
base class fromQuerySet
by @intgr in Remove incorrectReversible
base class fromQuerySet
#2094New Contributors
AppConfig.models_module
#1866CommandParser
tocommands.__init__
#1927extra_context
onTemplateView
s #1994Collection
base class and__contains__
method fromQuerySet
#1925db_default=
parameter to modelsField
classes #1876db_comment=
parameter to Postgres and GIS model fields #2054django.db.backends.oracle.base
#2057django.template.base.Template.render()
argument type #1160path
signature for async views #2085Full Changelog: 4.2.7...5.0.0
This discussion was created from the release 5.0.0.
Beta Was this translation helpful? Give feedback.
All reactions