]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103027: Update `dataclass.make_dataclass` docstring (gh-103028)
authorNikita Sobolev <mail@sobolevn.me>
Sat, 25 Mar 2023 19:36:38 +0000 (22:36 +0300)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2023 19:36:38 +0000 (15:36 -0400)
* gh-103027: Update `dataclass.make_dataclass` docstring

Lib/dataclasses.py

index e3fd0b3e380dd89bf0628ebfc7660f55e0759f15..0e04469be3ca32338c44ee141ece32ab0bd861f0 100644 (file)
@@ -1421,8 +1421,11 @@ def make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True,
 
     For the bases and namespace parameters, see the builtin type() function.
 
-    The parameters init, repr, eq, order, unsafe_hash, and frozen are passed to
-    dataclass().
+    The parameters init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only,
+    slots, and weakref_slot are passed to dataclass().
+
+    If module parameter is defined, the '__module__' attribute of the dataclass is
+    set to that value.
     """
 
     if namespace is None: