Skip to content

Commit 4c1b2ad

Browse files
Fix astuple in dataclasses documentation (GH-9631)
(cherry picked from commit 508d820) Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>
1 parent 758ad54 commit 4c1b2ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/dataclasses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Module-level decorators, classes, and functions
309309

310310
Raises :exc:`TypeError` if ``instance`` is not a dataclass instance.
311311

312-
.. function:: astuple(*, tuple_factory=tuple)
312+
.. function:: astuple(instance, *, tuple_factory=tuple)
313313

314314
Converts the dataclass ``instance`` to a tuple (by using the
315315
factory function ``tuple_factory``). Each dataclass is converted

0 commit comments

Comments
 (0)