From: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com> Date: Thu, 19 Aug 2021 20:47:16 +0000 (+0200) Subject: Fix reST markup in dataclasses.rst (GH-27843) X-Git-Tag: v3.11.0a1~380 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d26dbba9297adb59bc49a6583c647804ef56fc58;p=thirdparty%2FPython%2Fcpython.git Fix reST markup in dataclasses.rst (GH-27843) The signature of field() had an extraneous colon at the end, causing it to appear all bold and without the module name. --- diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 4ee75f1cc5ff..de7dfae15ebd 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -205,7 +205,7 @@ Module contents follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance. -.. function:: field(*, default=MISSING, default_factory=MISSING, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=MISSING): +.. function:: field(*, default=MISSING, default_factory=MISSING, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=MISSING) For common and simple use cases, no other functionality is required. There are, however, some dataclass features that