mirror of
https://github.com/python/cpython
synced 2024-09-15 22:26:46 +00:00
Tweak wording for dataclasses.replace (gh-117758)
This commit is contained in:
parent
a74f117dab
commit
e7cce2a9c6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue