summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric V. Smith <ericvsmith@users.noreply.github.com>2018-01-07 13:19:45 (GMT)
committerGitHub <noreply@github.com>2018-01-07 13:19:45 (GMT)
commitd327ae6ba157fb5118df28a86975c5ca523f05e2 (patch)
tree65cb467d2cfe93d4e42b30e6ca0cc28de4030e69 /Lib
parent7f7de371f947dc38e67505601927e9bc58fa268a (diff)
downloadcpython-d327ae6ba157fb5118df28a86975c5ca523f05e2.zip
cpython-d327ae6ba157fb5118df28a86975c5ca523f05e2.tar.gz
cpython-d327ae6ba157fb5118df28a86975c5ca523f05e2.tar.bz2
Fix dataclasses docstring typo. (gh-5118)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dataclasses.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index 62b7c5e..9e186c3 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -712,9 +712,9 @@ def make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True,
The dataclass name will be 'cls_name'. 'fields' is an iterable
of either (name), (name, type) or (name, type, Field) objects. If type is
omitted, use the string 'typing.Any'. Field objects are created by
- calling 'field(name, type [, Field])'.
+ the equivalent of calling 'field(name, type [, Field-info])'.
- C = make_class('C', [('a', int', ('b', int, Field(init=False))], bases=Base)
+ C = make_class('C', ['x', ('y', int'), ('z', int, Field(init=False))], bases=[Base])
is equivalent to: