Skip to content

Commit

Permalink
Fix dataclasses docstring typo. (gh-5118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvsmith committed Jan 7, 2018
1 parent 7f7de37 commit d327ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/dataclasses.py
Expand Up @@ -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:
Expand Down

0 comments on commit d327ae6

Please sign in to comment.