summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>2018-09-29 10:50:31 (GMT)
committerEric V. Smith <ericvsmith@users.noreply.github.com>2018-09-29 10:50:31 (GMT)
commit508d8205121868ef24cca99f1f952558b1ff2f2e (patch)
tree1278101cfff18515f9b3c029a9b33b1f7028be26
parent4b430e5f6954ef4b248e95bfb4087635dcdefc6d (diff)
downloadcpython-508d8205121868ef24cca99f1f952558b1ff2f2e.zip
cpython-508d8205121868ef24cca99f1f952558b1ff2f2e.tar.gz
cpython-508d8205121868ef24cca99f1f952558b1ff2f2e.tar.bz2
Fix astuple in dataclasses documentation (GH-9631)
-rw-r--r--Doc/library/dataclasses.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index acfd13a..072a500 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