From 2d88e63bfcf7bccba925ab80b3f47ccf8b7aefa8 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 26 Jun 2019 19:07:44 +0300 Subject: bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. (GH-14390) --- Doc/library/dataclasses.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index db5c3e0c7e..9e02882902 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 -- cgit v1.2.1