Skip to content

Commit beb8e3f

Browse files
authored
gh-141510: Document ParameterizedMIMEHeader.params change (#145003)
Document also the dataclasses.field() metadata change.
1 parent 50c1471 commit beb8e3f

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

Doc/library/dataclasses.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ Module contents
333333
:attr:`!C.t` will be ``20``, and the class attributes :attr:`!C.x` and
334334
:attr:`!C.y` will not be set.
335335

336+
.. versionchanged:: next
337+
If *metadata* is ``None``, use an empty :class:`frozendict`, instead
338+
of a :func:`~types.MappingProxyType` of an empty :class:`dict`.
339+
336340
.. class:: Field
337341

338342
:class:`!Field` objects describe each defined field. These objects

Doc/library/email.headerregistry.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ variant, :attr:`~.BaseHeader.max_count` is set to 1.
269269

270270
A dictionary mapping parameter names to parameter values.
271271

272+
.. versionchanged:: next
273+
It is now a :class:`frozendict` instead of a
274+
:class:`types.MappingProxyType`.
275+
272276

273277
.. class:: ContentTypeHeader
274278

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``ParameterizedMIMEHeader.params`` of :mod:`email.headerregistry` is now a
2+
:class:`frozendict` instead of a :class:`types.MappingProxyType`. Patch by
3+
Victor Stinner.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:func:`dataclasses.field`: if *metadata* is ``None``, use an empty
2+
:class:`frozendict`, instead of a :func:`~types.MappingProxyType` of an
3+
empty :class:`dict`. Patch by Victor Stinner.

0 commit comments

Comments
 (0)