summaryrefslogtreecommitdiffstats
path: root/Doc/library/dataclasses.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-06-26 16:07:44 (GMT)
committerGitHub <noreply@github.com>2019-06-26 16:07:44 (GMT)
commit2d88e63bfcf7bccba925ab80b3f47ccf8b7aefa8 (patch)
tree586d1b29cd129de3f0bf3f84a8ef62b63536d413 /Doc/library/dataclasses.rst
parent69150669f224a1fc47de483557736e725ac5b2a1 (diff)
downloadcpython-2d88e63bfcf7bccba925ab80b3f47ccf8b7aefa8.zip
cpython-2d88e63bfcf7bccba925ab80b3f47ccf8b7aefa8.tar.gz
cpython-2d88e63bfcf7bccba925ab80b3f47ccf8b7aefa8.tar.bz2
bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. (GH-14390)
Diffstat (limited to 'Doc/library/dataclasses.rst')
-rw-r--r--Doc/library/dataclasses.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index db5c3e0..9e02882 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -356,7 +356,7 @@ Module-level decorators, classes, and functions
def add_one(self):
return self.x + 1
-.. function:: replace(instance, **changes)
+.. function:: replace(instance, /, **changes)
Creates a new object of the same type of ``instance``, replacing
fields with values from ``changes``. If ``instance`` is not a Data