We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74f117 commit e7cce2aCopy full SHA for e7cce2a
Doc/library/dataclasses.rst
@@ -430,8 +430,8 @@ Module contents
430
431
Creates a new object of the same type as ``obj``, replacing
432
fields with values from ``changes``. If ``obj`` is not a Data
433
- Class, raises :exc:`TypeError`. If values in ``changes`` do not
434
- specify fields, raises :exc:`TypeError`.
+ Class, raises :exc:`TypeError`. If keys in ``changes`` are not
+ field names of the given dataclass, raises :exc:`TypeError`.
435
436
The newly returned object is created by calling the :meth:`~object.__init__`
437
method of the dataclass. This ensures that
0 commit comments