From: 방성범 (Bang Seongbeom) Date: Sat, 29 Sep 2018 10:50:31 +0000 (+0900) Subject: Fix astuple in dataclasses documentation (GH-9631) X-Git-Tag: v3.8.0a1~861 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=508d8205121868ef24cca99f1f952558b1ff2f2e;p=thirdparty%2FPython%2Fcpython.git Fix astuple in dataclasses documentation (GH-9631) --- 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