]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix reST markup in dataclasses.rst (GH-27843)
authorJean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
Thu, 19 Aug 2021 20:47:16 +0000 (22:47 +0200)
committerGitHub <noreply@github.com>
Thu, 19 Aug 2021 20:47:16 +0000 (16:47 -0400)
The signature of field() had an extraneous colon at the end, causing it
to appear all bold and without the module name.

Doc/library/dataclasses.rst

index 4ee75f1cc5ff96ec60d81970a4a80ebee818b65d..de7dfae15ebd8e368681a59c00e123fe0c5d0b20 100644 (file)
@@ -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