Skip to content

Commit

Permalink
Update dataclasses.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Gouvernathor authored Apr 11, 2024
1 parent c06be6b commit 730b1df
Showing 1 changed file with 2 additions and 2 deletions.
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 correct
field names for 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

0 comments on commit 730b1df

Please sign in to comment.