]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix astuple in dataclasses documentation (GH-9631)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Sep 2018 10:55:14 +0000 (03:55 -0700)
committerGitHub <noreply@github.com>
Sat, 29 Sep 2018 10:55:14 +0000 (03:55 -0700)
(cherry picked from commit 508d8205121868ef24cca99f1f952558b1ff2f2e)

Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>
Doc/library/dataclasses.rst

index 2efa2c51a459a38f1a5648754015569b4a2f2fe0..fe0feeda8b87870098f5935b1181f373d85ba1aa 100644 (file)
@@ -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