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:
Jean-Abou-Samra 2021-08-19 22:47:16 +02:00 committed by GitHub
parent 3db42fc5ac
commit d26dbba929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ Module contents
follows a field with a default value. This is true whether this follows a field with a default value. This is true whether this
occurs in a single class, or as a result of class inheritance. 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 For common and simple use cases, no other functionality is
required. There are, however, some dataclass features that required. There are, however, some dataclass features that