gh-141510: Document ParameterizedMIMEHeader.params change (#145003)

Document also the dataclasses.field() metadata change.
This commit is contained in:
Victor Stinner 2026-02-19 22:13:16 +01:00 committed by GitHub
parent 50c14719fb
commit beb8e3f276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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.