Skip to content
Merged
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: 2 additions & 2 deletions Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ Module contents

Creates a new object of the same type as ``obj``, replacing
fields with values from ``changes``. If ``obj`` is not a Data
Class, raises :exc:`TypeError`. If values in ``changes`` do not
specify fields, raises :exc:`TypeError`.
Class, raises :exc:`TypeError`. If keys in ``changes`` are not
field names of the given dataclass, raises :exc:`TypeError`.

The newly returned object is created by calling the :meth:`~object.__init__`
method of the dataclass. This ensures that
Expand Down