]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix astuple in dataclasses documentation (GH-9631)
author방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>
Sat, 29 Sep 2018 10:50:31 +0000 (19:50 +0900)
committerEric V. Smith <ericvsmith@users.noreply.github.com>
Sat, 29 Sep 2018 10:50:31 +0000 (06:50 -0400)
Doc/library/dataclasses.rst

index acfd13a712b99b89ee049af0520416393548f96a..072a500d9f8787560f1f3fd783c91c18dcba4b58 100644 (file)
@@ -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