[Python-checkins] Fix astuple in dataclasses documentation (GH-9631)
Eric V. Smith
webhook-mailer at python.org
Sat Sep 29 06:50:42 EDT 2018
https://github.com/python/cpython/commit/508d8205121868ef24cca99f1f952558b1ff2f2e
commit: 508d8205121868ef24cca99f1f952558b1ff2f2e
branch: master
author: 방성범 (Bang Seongbeom) <bangseongbeom at hotmail.com>
committer: Eric V. Smith <ericvsmith at users.noreply.github.com>
date: 2018-09-29T06:50:31-04:00
summary:
Fix astuple in dataclasses documentation (GH-9631)
files:
M Doc/library/dataclasses.rst
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index acfd13a712b9..072a500d9f87 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -308,7 +308,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