mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
3db42fc5ac
commit
d26dbba929
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue