[Python-checkins] Fix astuple in dataclasses documentation (GH-9631)

Miss Islington (bot) webhook-mailer at python.org
Sat Sep 29 06:55:17 EDT 2018


https://github.com/python/cpython/commit/4c1b2ad44f67ed19b7acf4fc09510ec3f5d081bc
commit: 4c1b2ad44f67ed19b7acf4fc09510ec3f5d081bc
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-09-29T03:55:14-07:00
summary:

Fix astuple in dataclasses documentation (GH-9631)

(cherry picked from commit 508d8205121868ef24cca99f1f952558b1ff2f2e)

Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom at hotmail.com>

files:
M Doc/library/dataclasses.rst

diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 2efa2c51a459..fe0feeda8b87 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -309,7 +309,7 @@ Module-level decorators, classes, and functions
 
    Raises :exc:`TypeError` if ``instance`` is not a dataclass instance.
 
-.. function:: astuple(*, tuple_factory=tuple)
+.. function:: astuple(instance, *, tuple_factory=tuple)
 
    Converts the dataclass ``instance`` to a tuple (by using the
    factory function ``tuple_factory``).  Each dataclass is converted



More information about the Python-checkins mailing list