Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Doc/library/email.headerregistry.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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