From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 29 Sep 2018 10:55:14 +0000 (-0700) Subject: Fix astuple in dataclasses documentation (GH-9631) X-Git-Tag: v3.7.1rc2~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c1b2ad44f67ed19b7acf4fc09510ec3f5d081bc;p=thirdparty%2FPython%2Fcpython.git Fix astuple in dataclasses documentation (GH-9631) (cherry picked from commit 508d8205121868ef24cca99f1f952558b1ff2f2e) Co-authored-by: 방성범 (Bang Seongbeom) --- 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