8000 Fix reST markup in dataclasses.rst (GH-27843) (GH-27845) · python/cpython@f0e2a46 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0e2a46

Browse files
Fix reST markup in dataclasses.rst (GH-27843) (GH-27845)
The signature of field() had an extraneous colon at the end, causing it to appear all bold and without the module name. (cherry picked from commit d26dbba) Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com> Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
1 parent 1204dfc commit f0e2a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/dataclasses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Module contents
205205
follows a field with a default value. This is true whether this
206206
occurs in a single class, or as a result of class inheritance.
207207

208-
.. function:: field(*, default=MISSING, default_factory=MISSING, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=MISSING):
208+
.. function:: field(*, default=MISSING, default_factory=MISSING, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=MISSING)
209209

210210
For common and simple use cases, no other functionality is
211211
required. There are, however, some dataclass features that

0 commit comments

Comments
 (0)
0