summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>2021-08-19 20:47:16 (GMT)
committerGitHub <noreply@github.com>2021-08-19 20:47:16 (GMT)
commitd26dbba9297adb59bc49a6583c647804ef56fc58 (patch)
tree2ee630dcca07ab9342b6f046a5d0519bd76ac422 /Doc
parent3db42fc5aca320b0cac1895bc3cb731235ede794 (diff)
downloadcpython-d26dbba9297adb59bc49a6583c647804ef56fc58.zip
cpython-d26dbba9297adb59bc49a6583c647804ef56fc58.tar.gz
cpython-d26dbba9297adb59bc49a6583c647804ef56fc58.tar.bz2
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.
Diffstat (limited to 'Doc')
-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 4ee75f1..de7dfae 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