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

Skip to content

Commit d26dbba

Browse files
authored
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.
1 parent 3db42fc commit d26dbba

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