mirror of
https://github.com/python/cpython.git
synced 2026-02-21 22:50:55 +00:00
gh-141510: Document ParameterizedMIMEHeader.params change (#145003)
Document also the dataclasses.field() metadata change.
This commit is contained in:
parent
50c14719fb
commit
beb8e3f276
4 changed files with 14 additions and 0 deletions
|
|
@ -333,6 +333,10 @@ Module contents
|
|||
:attr:`!C.t` will be ``20``, and the class attributes :attr:`!C.x` and
|
||||
:attr:`!C.y` will not be set.
|
||||
|
||||
.. versionchanged:: next
|
||||
If *metadata* is ``None``, use an empty :class:`frozendict`, instead
|
||||
of a :func:`~types.MappingProxyType` of an empty :class:`dict`.
|
||||
|
||||
.. class:: Field
|
||||
|
||||
:class:`!Field` objects describe each defined field. These objects
|
||||
|
|
|
|||
|
|
@ -269,6 +269,10 @@ variant, :attr:`~.BaseHeader.max_count` is set to 1.
|
|||
|
||||
A dictionary mapping parameter names to parameter values.
|
||||
|
||||
.. versionchanged:: next
|
||||
It is now a :class:`frozendict` instead of a
|
||||
:class:`types.MappingProxyType`.
|
||||
|
||||
|
||||
.. class:: ContentTypeHeader
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
``ParameterizedMIMEHeader.params`` of :mod:`email.headerregistry` is now a
|
||||
:class:`frozendict` instead of a :class:`types.MappingProxyType`. Patch by
|
||||
Victor Stinner.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
:func:`dataclasses.field`: if *metadata* is ``None``, use an empty
|
||||
:class:`frozendict`, instead of a :func:`~types.MappingProxyType` of an
|
||||
empty :class:`dict`. Patch by Victor Stinner.
|
||||
Loading…
Add table
Add a link
Reference in a new issue